我想通过php启动我的Hadoop集群。 注意: Hadoop服务器正常启动而没有任何错误从终端通过start-all.sh
启动时也添加了ssh密钥到该机器(tejas@192.168.1.104)也添加了tejas作为用户apache 。
我的php脚本是:
shell_exec('/home/tejas/hadoop/bin/start-all.sh');
脚本抛出错误starting namenode, logging to /home/tejas/hadoop/libexec/../logs/hadoop--namenode-tejas.out 192.168.1.104: Host key verification failed. 192.168.1.104: Host key verification failed. jobtracker running as process 20020. Stop it first. 192.168.1.104: Host key verification failed.
失败并且不启动任何服务。