在hive中遇到的錯誤

來源:互聯網
上載者:User

標籤:tin   防火牆   cep   png   cli   oop   man   sel   命令列   

1:如果在將檔案匯入到hive表時,查詢結果為null()


這個是因為在建立表的時候沒有指定資料行分隔符號,hive的預設分隔符號是ctrl+a(/u0001) 2.當我複製好幾行sql到hive命令列時,會出現下面情況,導致複製失敗這個是因為我的sql中有tab的縮排,將tab的空格去掉即可 3.當我在使用load載入資料是,拋出filad
hive> LOAD DATA LOCAL INPATH ‘/home/node4/Desktop/sutdent.txt‘ OVERWRITE INTO TABLE student_3;FAILED: SemanticException Unable to load data to destination table. Error: The file that you are trying to load does not match the file format of the destination table.
這是因為SequenceFile的表不能使用load來載入資料  4.如果在從hdfs上匯出資料到hive表報如下錯誤:
FAILED: SemanticException Line 1:17 Invalid path ‘‘hdfs://Master:9000/user/test/qar_test‘‘: No files matching path hdfs://Master:9000/user/test/qar_test
這個是說路徑錯誤,可以去mysql中查看一下查詢hive下的DBS表DB_LOCATION_URI列:select DB_LOCATION_URI from DBS; 
+----------------------------------------+| DB_LOCATION_URI |+----------------------------------------+| hdfs://10.1.51.200:9000/hive/warehouse |+----------------------------------------+

 

 5.在使用eclipse連結hive時,總是報time out connection,這個是因為我伺服器的防火牆沒關閉 6.報一下錯誤,需要配置hadoop-core.xml檔案
Caused by: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): Unauthorized connection for super-user: root from IP 192.168.177.124
添加如下配置
<property><name>hadoop.proxyuser.root.groups</name><value>*</value></property><property><name>hadoop.proxyuser.root.hosts</name><value>*</value></property> 
  

在hive中遇到的錯誤

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.