文档首页/ MapReduce服务 MRS/ 故障排除/ 使用Flume/ Flume客户端安装失败
更新时间:2023-11-18 GMT+08:00
分享

Flume客户端安装失败

问题现象

安装Flume客户端失败,提示JAVA_HOME is null或flume has been installed。

CST 2016-08-31 17:02:51 [flume-client install]: JAVA_HOME is null in current user,please install the JDK and set the JAVA_HOME
CST 2016-08-31 17:02:51 [flume-client install]: check environment failed.
CST 2016-08-31 17:02:51 [flume-client install]: check param failed.
CST 2016-08-31 17:02:51 [flume-client install]: install flume client failed.
CST 2016-08-31 17:03:58 [flume-client install]: flume has been installed
CST 2016-08-31 17:03:58 [flume-client install]: check path failed.
CST 2016-08-31 17:03:58 [flume-client install]: check param failed.
CST 2016-08-31 17:03:58 [flume-client install]: install flume client failed.

原因分析

  • Flume客户端安装时会检查环境变量,如果没有可用的JAVA,会报错并退出安装。
  • 指定的目录下已经安装有Flume客户端。

解决办法

  1. 如果报JAVA_HOME is null错误,需要使用命令:

    export JAVA_HOME=java路径

    设置JAVA_HOME,重新运行安装脚本。

  2. 如果指定的目录下已经安装有Flume客户端,需要先卸载已经存在的Flume客户端,或指定其他目录安装。

相关文档