The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Sqoop Forum

Flume: Importing Twitter data not working

  • #46930
    Venkatesh Bodapati

    Hi I’m unable to get twitter streaming data by using flume.

    I’m getting no error messages and no twitter streaming data or tweets.
    When I run flume i’m getting the following message–

    some lines about loading api and then
    “””””—–org.apache.flume.node.Application -f /etc/flume/conf/flume.conf -n TwitterAgent
    2014-01-17 18:55:52,307 [lifecycleSupervisor-1-0] INFO poc.hortonworks.flume.source.twitter.TwitterSource ( – Setting up Twitter sample stream using consumer key {} and access token {}
    2014-01-17 18:55:52,388 [lifecycleSupervisor-1-0] INFO poc.hortonworks.flume.source.twitter.TwitterSource ( – Starting up Twitter filtering…..”””””

    I waited for 3 hours but no data recieved and then I closed.

    Steps which I followed

    Step1: Downloaded Sentiment files from following website

    Step 2: unzip file
    Step3: copied flume-custom-source-1.0.0-SNAPSHOT.jar file to local in centos. This file is inside downloaded “Sentiment files”

    Step 4: I have configured file, setting SNAPSHOT jar file in flume path and all flume configuration properties with source as “poc.hortonworks.source.twitter.TwitterSource”
    which is provided in snapshot jar file.
    All my configurations are according to “SentimentFiles” only.

    Step5: And ran flume-ng agent –conf /etc/flume/conf/ -f /etc/flume/conf/flumetwitter.conf -Dflume.root.logger=DEBUG,console -n TwitterAgent

    And then waiting…

    Even when I keep wrong twitter credentials wrong it is not informing anything and the output is same in both cases, waiting for long period.

    I tried with different access levels of twitter app- read only, read and write

    I’m using Sandbox 1.2.
    In another case tried with source as “exec” but i need to set “command” property for it which i don’t know.

    Is there anything wrong with “TwitterSource” ? or where can I find updated twitter source?
    Is there any other things to be considered?
    please inform me.

  • Author
  • #46935
    Robert Molina

    Hi Venkatesh,
    I will probably need to test the conf file to see if it works on my side. On your side, as a test, can you try to putting a netcat source instead of the twitter source and just test data can flow through?


    Venkatesh Bodapati

    We need to synchronize time externally by NTP in Cent OS or OS installed for sandbox.
    And then working fine.

The topic ‘Flume: Importing Twitter data not working’ is closed to new replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.