hadoop格式化


1、hadoop啟動時,namenode沒有啟動起來

1、刪除 namenode產生的臨時文件 tmp
2、刪除datanode的數據,否則也不行。(如果datanode有數據,請自己備份)
./bin/hdfs namenode -format  #進行格式化

2、hbase連接不上報一下錯

  a)master.HMaster: hbase:meta,,1.1588230740 is NOT online;

進入zk , 將原有的/hbase/meta-region-server刪除,即 rmr /habse/meta-region-server

  b)2019-08-14 17:35:21.221 INFO 12884 --- [hared--pool1-t1] o.a.h.hbase.client.RpcRetryingCaller : Call exception, tries=11, retries=35, started=50096 ms ago, cancelled=false, msg=localhost.localdomain row 'nias:bus_receiver,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=localhost.localdomain,16020,1565769181448, seqNum=0

表明你只能進行本機連接,無法進行遠程連接。解決方法:
    在hbase-site.xml文件鍾添加 <property>       <name>hbase.regionserver.hostname</name>       <value>medecineit</value>        </property>

 




免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM