运行水槽代理以获取Twitter数据

时间:2019-03-18 20:34:32

标签: apache hadoop flume flume-ng flume-twitter

我一直试图在Windows系统上运行水槽代理以获取Twitter数据。我正在关注这个博客 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

我已经尝试过自行调试,但是没有成功。我试图查找此特定错误,但在任何地方都找不到。

1 个答案:

答案 0 :(得分:1)

Picturebox1.Image = Properties.Resources.SampleIMG **(Note that is a line from Visual Studio, not working in SharpDevelop!)** 是否存在于该位置?您确定它在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