Giter Site home page Giter Site logo

sentimentanalysisinhadoop's Introduction

Author: Rahmat Peter I. Dabalos

README:

Setup Hadoop:

  1. Create 4 instances in P2C(http://srg.ics.uplb.edu.ph/projects/peak-two-cloud/peak-two-cloud-resources/user-guide). 1 Masternode 3 Slavenodes
  2. Edit all the /etc/hosts with all the ip-addresses of each instance
  3. Extract hadoop-2.7.2 in /usr/local/hadoop for Masternode, and Slavenodes
  4. make ssh passwordless for each instance
  5. put into .bashrc the bin path of hadoop
  6. Configure Hadoop config files: follow instructions from : http://chaalpritam.blogspot.com/2015/05/hadoop-270-single-node-cluster-setup-on.html

Running Naive Bayes / Dictionary Based

  1. Run start-all.sh
  2. make directories(hadoop fs -mkdir path) /user/ubuntu/dictionary /user/ubuntu/dataset /user/ubuntu/Final/Final
  3. put into hdfs(hadoop fs -put file) hadoop fs -put negative-words-combined.text /user/ubuntu/dictionary/ hadoop fs -put positive-words-combined.text /user/ubuntu/dictionary/ hadoop fs -put stop-words.text /user/ubuntu/dictionary/ hadoop fs -put positive-text negative-text /user/ubuntu/dataset hadoop fs -put finalData /user/ubuntu/Final/Final
  4. run ./compileandrun.sh from either bayes(Naive Bayes) or wordcountprof(Dictionary Based) folder
  5. results will be in hdfs /user/ubuntu/output/ for Dictionary Based and /user/ubuntu/output2/ for Naive Bayes

Gathering Data:

  1. Rfacebook: follow instructions from this link: http://pablobarbera.com/blog/archives/3.html
  2. twitteR: follow instruction from this link: http://www.r-bloggers.com/getting-started-with-twitter-in-r/
  3. Apache Flume and Apache Hive: from this link: http://www.thecloudavenue.com/2013/03/analyse-tweets-using-flume-hadoop-and.html

WordCloud tool: tagul.com Bell Curve Plot: used excel

sentimentanalysisinhadoop's People

Contributors

qwerahmatyuiop avatar

Stargazers

Almer Mendoza avatar

Watchers

James Cloos avatar Joseph Anthony C. Hermocilla 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.