运行flume代理获取Twitter数据

问题描述 投票:1回答:1

我一直试图在我的Windows系统上运行一个水槽代理来获取推特数据。我关注这个博客https://acadgild.com/blog/streaming-twitter-data-using-flume

但是,每当我尝试运行水槽代理时,我都会收到以下错误 -

flume-ng agent -n TwitterAgent -f ./conf/flume.conf

E:\apache-flume-1.7.0-bin\apache-flume-1.7.0-bin\bin>powershell.exe -NoProfile -InputFormat none -ExecutionPolicy unrestricted -File E:\apache-flume-1.7.0-bin\apache-flume-1.7.0-bin\bin\flume-ng.ps1 agent -n TwitterAgent -f ./conf/flume.conf

Resolve-Path : Cannot find path 'E:\apache-flume-1.7.0-bin\apache-flume-1.7.0-bin\bin\conf\flume.conf' because it does not exist.
At E:\apache-flume-1.7.0-bin\apache-flume-1.7.0-bin\bin\flume-ng.ps1:217 char:24 +     $confFile = '"' + (Resolve-Path $confFile).Path + '"' +                        ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (E:\apache-flume...conf\flume.conf:String) [Resolve-Path], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand

我试过自己调试它,但没有这样做。我试图寻找这个特殊的错误,但无法在任何地方找到它。

apache hadoop flume flume-ng flume-twitter
1个回答
1
投票

E:\apache-flume-1.7.0-bin\apache-flume-1.7.0-bin\bin\conf\flume.conf是否存在于该位置?你确定它在\bin\conf\flume.conf而不是\conf\flume.conf吗?在哪种情况下使用:

flume-ng agent -n TwitterAgent -f ./../conf/flume.conf

或者(更常见),使用以下命令从E:\apache-flume-1.7.0-bin\apache-flume-1.7.0-bin文件夹运行:

bin/flume-ng agent -n TwitterAgent -f ./conf/flume.conf
© www.soinside.com 2019 - 2024. All rights reserved.