问题描述:Container exited with a non-zero exit code 127. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Last 4096 bytes of stderr : /bin/bash: /bin/java: No such file or directory
造成这种的问题的原因是hadoop的hadoop-env.sh未添加java路径,需要自己添加。hadoop-env.sh再/hadoop/etc/hadoop的文件夹下。