1 jps 问题,jps not found ……
主要是$JAVA_HOME问题
分别修改 ~/.profile 、 /etc/profile在文件最后填加$JAVA_HOME及路径
export JAVA_HOME=/usr/share/jdk1.8.0_181#具体java路径
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
分别source ~/.profile 、/etc/profile
2
put: File /input/wordfile1.txt._COPYING_ could only be replicated to 0 nodes instead of minReplication (=1). There are 0 datanode(s) running and no node(s) are excluded in this operation.
删除 配置文件中的根目录,例如
<name>hadoop.tmp.dir</name>
<>file:/usr/local/hadoop/tmp<>
删除tmp目录
hdfs namenode -format
start-dfs.sh
hsdf dfs -put ./test /test
本文详细介绍了如何解决常见的JPS未找到问题,通过设置正确的JAVA_HOME环境变量,并提供了具体的配置步骤。同时,针对Hadoop put命令出现的复制文件到节点失败的问题,给出了检查配置文件、删除tmp目录并重新格式化HDFS的解决方案。
467

被折叠的 条评论
为什么被折叠?



