How to fed Twitterdata via flume to hdfs over proxy?

允我心安 提交于 2019-12-08 04:44:28

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);//port
cb.setHttpProxyUser("");
cb.setHttpProxyPassword("");

$ cd flume-sources

$ mvn package

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!