阿里云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 

猜你喜欢

转载自blog.csdn.net/sxg0205/article/details/85850974