How to fed Twitterdata via flume to hdfs over proxy? How to fed Twitterdata via flume to hdfs over proxy? hadoop hadoop

How to fed Twitterdata via flume to hdfs over proxy?


Build the jar from https://github.com/cloudera/cdh-twitter-example

Unzip, then execute inside (as mentionned) :

go to /cdh-twitter-example-master/flume-sources/src/main/java/com/cloudera/flume/source/TwitterSource.java

and add this lines

cb.setHttpProxyHost("your proxy");cb.setHttpProxyPort(8080);//portcb.setHttpProxyUser("");cb.setHttpProxyPassword("");

$ cd flume-sources

$ mvn package

den put the jar from target to flume lib folder.enjoy