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