dolphinscheduler启动报错
weidonghua@hadoop01:/opt/software/apache-dolphinscheduler-2.0.5-bin$ ./install.sh
./install.sh: 23: source: not found
1.replace file
./install.sh: 30: [[: not found
./install.sh: 36: [[: not found
2.create directory
3.scp resources
/opt/software/apache-dolphinscheduler-2.0.5-bin/script/scp-hosts.sh: 22: source: not found
/opt/software/apache-dolphinscheduler-2.0.5-bin/script/scp-hosts.sh: 26: [[: not found
/opt/software/apache-dolphinscheduler-2.0.5-bin/script/scp-hosts.sh: 31: Syntax error: "(" unexpected
scp copy failed to exit
原因:默认使用dash作为shell,但sh是bash shell的命令。
解决方案:
dpkg-reconfigure dash(需要root权限)
在界面中选择no
再运行ls -l /bin/sh 后显示/bin/sh -> bash
再运行sh命令即可
脚本完成后,会启动以下 5 个服务,使用
jps
命令查看服务是否启动( jps 为 JDK 自带)
如果显示中包含:
MasterServer ----- master服务
WorkerServer ----- worker服务
LoggerServer ----- logger服务
ApiApplicationServer ----- api服务
AlertServer ----- alert服务
如果以上服务都正常启动,说明自动部署成功
hadoop02 sh: 0: Can't open bin/dolphinscheduler-daemon.sh
原因是安装完以后hadoop02和Hadoop03上dolphinscheduler目录中没有bin目录