kafka集群脚本启动失败,在kafkaServer.out中提示nohup: failed to run command `java’: No such file or directory
生活随笔
收集整理的這篇文章主要介紹了
kafka集群脚本启动失败,在kafkaServer.out中提示nohup: failed to run command `java’: No such file or directory
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天在使用shell腳本啟動集群時,發現無法啟動集群,在logs目錄下只有一個kafkaServer.out文件,其中內容為:nohup: failed to run command `java’: No such file or directory
修改腳本
#!/bin/bashcase $1 in "start"){for i in hadoop002 hadoop003 hadoop004doecho "========== $i ==========" ssh $i "source /etc/profile;nohup /opt/module/kafka/bin/kafka-server-start.sh -daemon /opt/module/kafka/config/server.properties"done};;"stop"){for i in hadoop002 hadoop003 hadoop004doecho "========== $i ==========" ssh $i "/opt/module/kafka/bin/kafka-server-stop.sh"done};; esac總結
以上是生活随笔為你收集整理的kafka集群脚本启动失败,在kafkaServer.out中提示nohup: failed to run command `java’: No such file or directory的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于eclipse的一些简单配置
- 下一篇: 烟台大学计算机专业调剂贴吧,烟台大学计算