更新时间:2022-02-24 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,会报JAVA_HOME is null错误并且退出安装。
- 如果指定的目录下已经安装有flume,客户端安装时会报flume has been installed并退出安装。
解决办法
- 如果报JAVA_HOME is null错误,需要使用命令:
export JAVA_HOME=java路径
设置JAVA_HOME,重新运行安装脚本。
- 如果指定的目录下已经安装有Flume客户端,需要先卸载已经存在的Flume客户端,或指定其他目录安装。
父主题: 使用Flume