我在 VMware 上部署了 Hadoop 集群。它们都在 CentOS 7 上。
在 Master 上发出命令 jps:
[root@hadoopmaster anna]# jps
6225 NameNode
6995 ResourceManager
6580 SecondaryNameNode
7254 Jps
Run Code Online (Sandbox Code Playgroud)
在 Slave 上发出命令 jps:
[root@hadoopslave1 anna]# jps
5066 DataNode
5818 Jps
5503 NodeManager
Run Code Online (Sandbox Code Playgroud)
但是,我不知道为什么http://localhost:50070/dfshealth.html#tab-overview上的实时节点 显示为 0。而且我无法发出 hdfs dfs -put in/file/f1。它显示错误消息:
[root@hadoopmaster hadoop]# hdfs dfs -put in/file/f1 /user
16/01/06 02:53:14 WARN hdfs.DFSClient: DataStreamer Exception
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /user._COPYING_ could only be replicated to 0 nodes instead of minReplication (=1). There are 0 datanode(s) running and no node(s) …Run Code Online (Sandbox Code Playgroud)