2016-07-10 68 views
0

我將JDK升級到8後無法運行accumulo。我已更改環境變量。無法啓動Accumulo

我能夠啓動hadoop沒有任何問題,我可以訪問數據節點http://localhost:50075(我正在我的本地機器上運行所有)。

而這正是我在accumulo日誌

主題「GC」死了,如果Accumulo初始化不能告訴我得到;無法讀取hdfs:// localhost:9000/accumulo/instance_id上​​的實例ID。

這裏是accumulo啓動腳本的控制檯輸出

/usr/local/accumulo-1.6.1/bin$ ./start-all.sh 
Starting monitor on localhost 
WARN : Max open files on localhost is 1024, recommend 32768 
Starting tablet servers .... done 
Starting tablet server on localhost 
WARN : Max open files on localhost is 1024, recommend 32768 
2016-07-09 21:06:09,723 [fs.VolumeManagerImpl] WARN : dfs.datanode.synconclose set to false in hdfs-site.xml: data loss is possible on system reset or power loss 
2016-07-09 21:06:09,726 [server.Accumulo] INFO : Attempting to talk to zookeeper 
2016-07-09 21:06:09,844 [server.Accumulo] INFO : Zookeeper connected and initialized, attemping to talk to HDFS 
2016-07-09 21:06:09,915 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:06:09,915 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 1.0 seconds 
2016-07-09 21:06:10,917 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:06:10,917 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 2.0 seconds 
2016-07-09 21:06:12,918 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:06:12,918 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 4.0 seconds 
2016-07-09 21:06:16,919 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:06:16,919 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 8.0 seconds 
2016-07-09 21:06:24,920 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:06:24,921 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 16.0 seconds 
2016-07-09 21:06:40,923 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:06:40,923 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 32.0 seconds 
2016-07-09 21:07:12,926 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:07:12,926 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds 
2016-07-09 21:08:12,929 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:08:12,929 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds 
2016-07-09 21:09:12,932 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:09:12,932 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds 
2016-07-09 21:10:12,935 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:10:12,935 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds 
2016-07-09 21:11:12,938 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode 
2016-07-09 21:11:12,938 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds 



Not sure what i am doing wrong..Appreciate any help. 

感謝

回答

1

該錯誤消息告訴您的NameNode是在安全模式。這通常是因爲HDFS意識到它缺少用於備份在本地文件系統中存儲在HDFS中的文件的塊。請訪問http://localhost:50070的NameNode UI,瞭解NameNode爲什麼不會自動離開安全模式的更多原因。

將NameNode移出安全模式之後,請確認您仍然有HDFS目錄/ accumulo(例如hdfs dfs -ls /accumulo)。

該目錄(和下面的結構)通過運行accumulo init創建。如果該目錄不存在,那意味着您刪除了該HDFS目錄(有意或無意)。

確保已將HDFS配置爲寫入到重新啓動機器時未擦除的目錄(例如,避免/tmp)。

+0

非常感謝您的回覆elserj。現在進入50070港口後,我明白髮生了什麼事。這是名稱節點的狀態。安全性關閉。 安全模式開啓。 NN上的資源很少。請添加或釋放更多資源,然後手動關閉安全模式。注意:如果在添加資源之前關閉安全模式,NN將立即返回到安全模式。使用「hdfs dfsadmin -safemode leave」關閉安全模式。它看起來像它自己在低資源上運行的機器! –

+0

HDFS具有配置的可用空間量(通過hdfs-site.xml中的dfs.datanode.du.reserved指定)。添加更多磁盤空間或清除節點上的某些非DFS使用情況。 – elserj