我一直在尝试在windows系统上运行flume代理来获取twitter数据。我正在关注这个博客https://acadgild.com/blog/streaming-twitter-data-using-flume
但是,每当我尝试运行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条答案
按热度按时间yxyvkwin1#
做
E:\apache-flume-1.7.0-bin\apache-flume-1.7.0-bin\bin\conf\flume.conf
在那个地方存在吗?你确定在里面吗\bin\conf\flume.conf
而不是\conf\flume.conf
? 在这种情况下,请使用:或者(更常见的是)从
E:\apache-flume-1.7.0-bin\apache-flume-1.7.0-bin
包含以下命令的文件夹: