報錯
在執行
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