我需要使用Twitter搜索API並將twitter數據導入到我的HDFS中。 Search API使用REST調用,我想了解如何使用Apache Flume。我已經要求授權使用Twitter的API,但我不明白如何使用flume實現Search API。需要幫忙!謝謝!Twitter搜索API和Hadoop
-1
A
回答
0
- 創建Twitter的開發者帳戶,並生成自己的密鑰。
- 將一個flume-source-1.0-SNAPSHOT.jar文件添加到lib文件夾中。
- 使用密鑰創建一個flume配置文件,從Twitter獲取推文並將其存儲到hdfs中。
- 你開始使用水槽下面的命令
命令:bin/flume-ng agent --conf ./conf/ -f conf/flume.conf -Dflume.root.logger=DEBUG,console -n TwitterAgent
欲瞭解更多詳情,請參閱以下鏈接:
http://www.thecloudavenue.com/2013/03/analyse-tweets-using-flume-hadoop-and.html
0
首先,你需要創建Twitter應用。轉到 https://apps.twitter.com/並創建應用程序,然後記住生成的四個密鑰 - 消費者密鑰,消費者密鑰,訪問令牌和訪問令牌密鑰。
下載apache-flume-1.x.0-bin.tar.gz
。在這裏,X表示最新version.After解壓文件中添加以下命令到~/.bashrc
文件:
export FLUME_HOME=location of untar flume file
export PATH=$PATH:$FLUME_HOME/bin
保存上述文件運行source ~/.bashrc
在terminal.After此遵循以下網站命令後:
https://acadgild.com/blog/streaming-twitter-data-using-flume/
相關問題
- 1. Twitter API搜索
- 2. Twitter搜索API - since_id和max_id
- 3. Python Twitter搜索API
- 4. Twitter搜索API(2)
- 5. Twitter API 1.1:搜索API
- 6. Twitter搜索Api 1.1按日期搜索
- 7. 搜索按鈕 - Twitter搜索API
- 8. Twitter搜索API - 按時間搜索
- 9. -filter:retweet和-filter:nativeretweets在Twitter搜索API 1.1
- 10. Twitter API 1.1搜索查詢和OAuth
- 11. Twitter API搜索查詢
- 12. 用法Twitter Stream api搜索
- 13. Twitter API搜索難度
- 14. Twitter API在以下搜索
- 15. Twitter搜索API的結果
- 16. Twitter搜索API - 不可用?
- 17. iOS Twitter搜索API實體
- 18. Twitter搜索API參數
- 19. Twitter搜索API每用戶
- 20. Twitter搜索API ID含義
- 21. 與Twitter的搜索API
- 22. Twitter的API api 1.1用戶/搜索403
- 23. 使用Twitter API api v1.1搜索/推文
- 24. twitter streaming api而不是搜索api
- 25. 要使用哪種? Twitter搜索API與Twitter REST API的搜索/鳴叫
- 26. 是否有類似於「Twitter搜索API」的「Facebook搜索API」?
- 27. Twitter的API數100多家,使用Twitter搜索API
- 28. PHP Twitter搜索API(使用J7mbo的twitter-api-php)
- 29. Twitter搜索與jQuery和Ajax
- 30. Twitter與C#和搜索