報錯:MetaException(message:Could not connect to meta store using any of the URIs provided

運行shell腳本報如下錯誤:

MetaException(message:Could not connect to meta store using any of the URIs provided. Most recent failure: org.apache.thrift.transport.TTransportException: GSS initiate failed

怎麼處理呢?

這個問題是由kerberos用戶認證引起的。(注意:此係統是centos6.9,CDH5.9版本

解決步驟如下:

(1)、輸入命令:klist

(2)輸入命令:kinit hdfs

(3)、輸入命令:crpntab -l

(4)、再次輸入命令:klist

(5)最後再跑shell腳本就能跑通了

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章