简体   繁体   English

在 Windows 10 上安装水槽代理

[英]Installing flume agent on windows 10

I want to install flume agent on my windows10 for taking logs into my hortonworks sandbox installed on virtual box.我想在我的 windows10 上安装水槽代理,以便将日志记录到安装在虚拟机上的 hortonworks 沙箱中。 i did all setup refering this link- https://gudisevablog.wordpress.com/2016/12/08/apache-flume-windows-10/ but it occured some problem when i run this我参考这个链接做了所有设置 - https://gudisevablog.wordpress.com/2016/12/08/apache-flume-windows-10/但是当我运行这个时出现了一些问题

command - " flume-ng agent –conf %FLUME_CONF% –conf-file %FLUME_CONF%/flume-conf.properties.template –name agent"命令 - “flume-ng agent –conf %FLUME_CONF% –conf-file %FLUME_CONF%/flume-conf.properties.template –name agent”

ERROR- Sourcing environment configuration script C:\\flume\\apache-flume-1.7.0-bin\\conf\\flume-env.ps1 WARN: Did not find C:\\flume\\apache-flume-1.7.0-bin\\conf\\flume-env.ps1 Including Hadoop libraries found in (C:\\hadoop\\hadoop-2.6.0) for DFS access The system cannot find the path specified. ERROR- Sourcing 环境配置脚本 C:\\flume\\apache-flume-1.7.0-bin\\conf\\flume-env.ps1 WARN: 没有找到 C:\\flume\\apache-flume-1.7.0-bin\\conf\\ flume-env.ps1 包括在(C:\\hadoop\\hadoop-2.6.0)中找到的Hadoop库,用于DFS访问系统找不到指定的路径。 The system cannot find the path specified.该系统找不到指定的路径。 '-Dhadoop.security.logger' is not recognized as an internal or external command, operable program or batch file. '-Dhadoop.security.logger' 不是内部或外部命令,也不是可运行的程序或批处理文件。 WARN: HBASE_HOME not found WARN: HIVE_HOME not found警告:HBASE_HOME 未找到 警告:HIVE_HOME 未找到

Running FLUME agent : class: org.apache.flume.node.Application arguments: -n agent -f "C:\\flume\\apache-flume-1.7.0-bin\\conf\\flume-conf.properties.template"运行 FLUME 代理:类:org.apache.flume.node.Application 参数:-n agent -f "C:\\flume\\apache-flume-1.7.0-bin\\conf\\flume-conf.properties.template"

Start-Process : This command cannot be run due to the error: The system cannot find the file specified. Start-Process : 由于错误:系统找不到指定的文件,因此无法运行此命令。 At C:\\flume\\apache-flume-1.7.0-bin\\bin\\flume-ng.ps1:189 char:10 + $x = Start-Process $javaPath -ArgumentList "$fullJavaCommand" -Wa ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand在 C:\\flume\\apache-flume-1.7.0-bin\\bin\\flume-ng.ps1:189 char:10 + $x = Start-Process $javaPath -ArgumentList "$fullJavaCommand" -Wa ... + ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException +fullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

i did all setting given on that blog can someone tell me where i'm stuck??我做了那个博客上给出的所有设置,有人能告诉我我卡在哪里吗??

Most probably there is a issue with your JAVA_HOME path.您的 JAVA_HOME 路径很可能存在问题。 In order to debug the issue simply print the command on console using Write-Host command as shown below:为了调试问题,只需使用 Write-Host 命令在控制台上打印命令,如下所示:

Write-Host "Start-Process $javaPath -ArgumentList '$fullJavaCommand' -Wait -NoNewWindow"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM