hadoop安裝中錯誤
1.1. hadoop錯誤
1.1.1. 啟動錯誤
[root@xuegod63 hadoop-2.6.2]#sbin/start-all.sh
This script is Deprecated. Instead use start-dfs.sh andstart-yarn.sh
17/05/15 18:58:59 WARN util.NativeCodeLoader: Unable to loadnative-hadoop library for your platform... using builtin-java classes whereapplicable
Starting namenodes on [xuegod63]
The authenticity of host 'xuegod63 (192.168.1.63)' can't beestablished.
RSA key fingerprint is06:42:3e:1a:f6:55:f1:ac:4d:15:c5:ac:c4:d8:0c:26.
Are you sure you want to continue connecting (yes/no)? yes
xuegod63: Warning: Permanently added 'xuegod63' (RSA) to thelist of known hosts.
xuegod63: starting namenode, logging to/usr/local/hadoop-2.6.2/logs/hadoop-root-namenode-xuegod63.out
The authenticity of host 'localhost (::1)' can't beestablished.
RSA key fingerprint is06:42:3e:1a:f6:55:f1:ac:4d:15:c5:ac:c4:d8:0c:26.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Warning: Permanently added 'localhost' (RSA) tothe list of known hosts.
localhost: starting datanode, logging to/usr/local/hadoop-2.6.2/logs/hadoop-root-datanode-xuegod63.out
Starting secondary namenodes [xuegod63]
xuegod63: starting secondarynamenode, logging to/usr/local/hadoop-2.6.2/logs/hadoop-root-secondarynamenode-xuegod63.out
17/05/15 18:59:43 WARN util.NativeCodeLoader:Unable to load native-hadoop library for your platform... using builtin-javaclasses where applicable
starting yarn daemons
resourcemanager running as process 3400. Stop it first.
localhost: starting nodemanager, logging to/usr/local/hadoop-2.6.2/logs/yarn-root-nodemanager-xuegod63.out
[root@xuegod63 hadoop-2.6.2]#
[root@xuegod63 hadoop-2.6.2]#
[root@xuegod63 hadoop-2.6.2]#
解決辦法:
下載hadoop-native包,解壓到lib/native目錄下即可。
1.1.2. hadoop建立目錄錯誤
現錯誤提示:mkdir:org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot createdirectory /hbase. Name node is in safe mode
解決方法:
進入Hadoop的bin目錄執行命令手動離開安全模式:
[root@localhost85bin]#
[root@localhost85bin]# ./hadoop dfsadmin -safemode leave
[root@localhost85bin]#
出錯原因:
這是因為在分散式檔案系統啟動的時候,開始的時候會有安全模式,當分散式檔案系統處於安全模式的情況下,檔案系統中的內容不允許修改也不允許刪除,直到安全模式結束。安全模式主要是為了系統啟動的時候檢查各個DataNode上資料塊的有效性,同時根據策略必要的複製或者刪除部分資料塊。執行期通過命令也可以進入安全模式。在實踐過程中,系統啟動的時候去修改和刪除檔案也會有安全模式不允許修改的出錯提示,只需要等待一會即可。
2.6以前解決辦法:
離開安全模式方法: bin/Hadoop dfsadmin -safemode leave
root@localhost85 hadoop-2.7.3]# bin/hadoop dfsadmin-safemode leave
root@localhost85 hadoop-2.7.3]# bin/hadoop dfsadmin-safemode -report
新版(2.7.3)推薦使用hdfs命令關閉安全模式:bin/hdfs dfsadmin -safemode leave
root@localhost85 hadoop-2.7.3]#
[root@localhost85 hadoop-2.7.3]# bin/hdfs dfsadmin -safemodeleave
Safe mode is OFF
You have new mail in /var/spool/mail/root
[root@localhost85 hadoop-2.7.3]#
在hdfs-site.xml中把dfs.safemode.threshold.pct設定為0即可關閉safemode
相關文章
- Hadoop安裝錯誤總結Hadoop
- hadoop 安裝錯誤記錄(持續更新)Hadoop
- 安裝Hadoop3X 出現的錯誤資訊Hadoop
- Oracle安裝錯誤Oracle
- pymssql安裝錯誤SQL
- jive安裝錯誤
- cocoapods安裝錯誤
- CentOS安裝pillow錯誤CentOS
- 【RAC】RAC安裝錯誤手工解除安裝
- MySQL 安裝常見錯誤MySql
- onethink安裝提示錯誤
- 安裝golang tour,提示錯誤Golang
- mysql 原始碼安裝過程中錯誤總結MySql原始碼
- 安裝出錯,說jiveHome驗證錯誤
- WordPress 線上安裝或更新錯誤
- 安裝.NET Core遇到的錯誤
- PHP安裝後錯誤處理PHP
- sendEmail安裝使用及錯誤排查AI
- RAC安裝時碰到的錯誤
- 安裝RAC常見小錯誤
- drupal7安裝中文錯誤
- Hadoop常見錯誤2Hadoop
- VMware中安裝ORACLE RAC出現的CRS錯誤總結Oracle
- redhat6.5中Rac11g安裝錯誤筆記Redhat筆記
- MacOs 安裝擴充套件錯誤列表Mac套件
- linux安裝thefuck報gcc錯誤LinuxGC
- ruby2.2安裝錯誤一則
- npm 安裝錯誤及處理方法NPM
- aix 6.1 安裝gcc,遇到“BUILTIN”錯誤AIGCUI
- Python錯誤:PyCharm 安裝出錯 Internal error,please。。。PythonPyCharmError
- 在ubuntu中安裝單機Hadoop(三)UbuntuHadoop
- hadoop(二)—hadoop配置、執行錯誤總結Hadoop
- Hadoop安裝指引Hadoop
- Hadoop 安裝部署Hadoop
- Hadoop安裝部署Hadoop
- Laravel 安裝後報 500 和 404 錯誤Laravel
- centos8安裝docker錯誤解決CentOSDocker
- amqp及zmq擴充套件安裝錯誤MQ套件