Code Monkey home page Code Monkey logo

tweets-analysis-in-hadoop's Introduction

Tweets-Analysis-in-Hadoop

Analyze a large file of tweet data in JSON format using Hive in Hadoop.

Note: I was given the JSON file (tweet). Check my Sentiment Analysis with R to see how I scrape online reviews with R. Use process.py to transform the tweet data to json format that can use json serde Tweet-json-hive is actually hive language, not java. I just saved in as java so it can appear all colorful in my Sublime Text

Some interesting things to share:

  1. Look at the data carefully It was a huge file with thousands of rows and dozens of attributes for each tweet. I even discovered 2 other types of tweets (retweeted and quoted) that were nested inside the direct tweets - almost miss them

  2. Non-character string can mess up your result (like "\n" for new line) Look at the Null values, find the inconsistency in the review (that "\n") and use regexp_replace to replace it.

  3. Difference between create table and create view Create view indeed saves me a lot of processing time (especially with Hive) for non-key data tables.

  4. SQL, SQL, and SQL At the end, Hive's syntax is very similar to SQL. I'm glad to re-touch several SQL functions that I just "know" before

tweets-analysis-in-hadoop's People

Contributors

thaoduong1993 avatar

Watchers

James Cloos 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.