天天看点

【CentOS】Hadoop 初始化 NameNode 后启动,查看进程报错

报错

在执行 ​

​hdfs namenode -format​

​ 初始化 ​

​NameNode​

​ 后,启动 ​

​hadoop​

​ 集群查看进程时,发现从节点机器一台有​

​NameNode​

​,一台没有:

[root@b dfs]# jps
Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.
  at java.lang.System.initProperties(Native Method)
  at java.lang.System.initializeSystemClass(System.java:1166)      

分析

这个错误大概有两种情况:

解决

[root@b dfs]# cd ..
[root@b hadoop]# jps
3078 Jps
2856 DataNode
2936