Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

141.7. FAQ

141.7.1. hadoop-1.1.2-1.x86_64.rpm 包含哪些檔案內容

查看安裝檔案

# rpm -ql hadoop-1.1.2-1
			

141.7.2. 啟動 Hadoop 後 9000 連接埠不存在

首先通過 jps 排查 NameNode 是否存在

			
[hadoop@netkiller apache-hadoop]$ jps
23345 NodeManager
23042 SecondaryNameNode
11076 Jps
22860 DataNode
23228 ResourceManager		
			
			

檢查 hdfs 目錄

			
[hadoop@netkiller ~]$ find /opt/hadoop/volume/
/opt/hadoop/volume/
/opt/hadoop/volume/datanode
/opt/hadoop/volume/namenode	
			
			

故障是 hdfs 目錄沒有初始化,初始化 hdfs 後重啟 hadoop 即可解決

			
[hadoop@netkiller apache-hadoop]$ bin/hdfs namenode -format

[hadoop@netkiller apache-hadoop]$ find /opt/hadoop/volume/
/opt/hadoop/volume/
/opt/hadoop/volume/datanode
/opt/hadoop/volume/namenode
/opt/hadoop/volume/namenode/current
/opt/hadoop/volume/namenode/current/seen_txid
/opt/hadoop/volume/namenode/current/fsimage_0000000000000000000
/opt/hadoop/volume/namenode/current/VERSION
/opt/hadoop/volume/namenode/current/fsimage_0000000000000000000.md5

[hadoop@netkiller ~]$ /srv/apache-hadoop/sbin/stop-all.sh
[hadoop@netkiller ~]$ /srv/apache-hadoop/sbin/start-all.sh

[hadoop@netkiller ~]$ jps
13728 NameNode
13875 DataNode
14308 ResourceManager
14776 Jps
14105 SecondaryNameNode
14425 NodeManager			
			
			

故障處理完畢