Giter Site home page Giter Site logo

cloudcomputingproject's Introduction

CloudComputingProject

Exhaustive YouTube Video Analysis using Hadoop Mapreduce and Real-time Sentiment Analysis using Spark Streaming

This project has analyzes combines two different aspects of YouTube video analysis under a single ubmrella.

  1. Analyzing the video based on its likes/dislikes/view counts
  2. Analyzing the video based on the sentiment of its comments.

In order to perform this combined analysis we try to achieve the following goals:

  1. Large scale analysis of Youtube videos, providing functionalities like top liked, top disliked, top viewed videos and top hot categories.
  2. Real time sentiment analysis of Youtube video comments using Kafka.

Guidelines to run the project:

For Part 1

  1. Create a cluster on Cloud Platform. We selected Google Cloud Platform. Choose the configuration(1 master, N workers).

  2. Follow the below steps to create jar file and upload on Bucket.
    hadoop fs -mkdir -p /user/username
    export PATH=${JAVA_HOME}/bin:${PATH}
    export HADOOP_CLASSPATH=${JAVA_HOME}/lib/tools.jar
    hadoop com.sun.tools.javac.Main ./filename.java
    jar cf jarname.jar filename*.class
    hadoop fs -copyFromLocal ./jarname.jar
    hadoop fs -cp ./jarname.jar bucket path\

  3. Submit the jobs

  4. See the top N results using bash command.

For Part 2

  1. Setup Zookeeper and Kafka servers on local machine. Instructions: https://kafka.apache.org/quickstart (Change any configuration from the files in config folder).
  2. Enable Youtube API and paste the key in the code (main.py) in order to enable it to extract the comments from the video.
  3. Specify the query and the total number of videos you want to query in main.py.
  4. Start main.py (It is the main file that starts extracting the Youtube comments for the given query and starts the Kafka producer to inject into Spark stream)
  5. Submit spark job comment_analyze.py. (Command: spark-submit --jars <list of jars separated by comma> comment_analyze.py)
    (This file contains code for creating Spark dstreams and comment analysis).

cloudcomputingproject's People

Contributors

nalindadhich1 avatar shbhmbhrgv avatar nalindadhich avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.