1. 程式人生 > >阿里雲ECS伺服器下hive安裝與配置

阿里雲ECS伺服器下hive安裝與配置

參照:https://www.cnblogs.com/dxxblog/p/8193967.html

雲伺服器centos版本:CentOS 7.2

hive版本:apache-hive-3.1.1

遇到的錯誤:

1、執行:./schematool -dbType mysql -initSchema時報錯

Exception in thread "main" [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0x8  at [row,col,system-id]: [3204,96,"file://hive/apache-hive-3.1.1-bin/conf/hive-site.xml"]

原因:

hive-site.xml  3204行有特殊字元,導致xml解析失敗,刪掉重新執行即可;

 

2、步驟1 之後執行hive指令報錯:

Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D

解決:

http://www.mamicode.com/info-detail-1961966.html

1.檢視hive-site.xml配置,會看到配置值含有"system:java.io.tmpdir"的配置項
2.根據實際安裝目錄在hive下新建資料夾iotmp,並且賦予使用使用者的許可權。
3.將含有"system:java.io.tmpdir"所有的配置項的值都修改為如上地址全路徑 iotmp