项目场景:
在进行安装hive3.1.2版本时,使用命令进入hive时。
问题描述
出现Exception in thread “main” java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: KaTeX parse error: Expected ‘}’, got ‘EOF’ at end of input: …a.io.tmpdir%7D/%7Bsystem:user.name%7D的报错提示。
原因分析:
因为hive-site.xml里面的临时文件存储路径设置有问题。
解决方案:
把hive-site.xml 中所有包含 ${system:Java.io.tmpdir}替换成/usr/local/hive/iotmp.
代码:
:%s#${system:java.io.tmpdir}#usr/local/hive/iotemp#g
如果系统默认没有指定系统用户名,那么要把配置${system:user.name}替换成当前用户名root
代码:
:%s/${system:user.name}/root/g
新建目录并进行权限赋值
先启动hdfs
[root@qianfeng01 hive] # hdfs dfs -mkdir -p /user/hive/warehouse
[root@qianfeng01 hive] # hdfs dfs -mkdir -p /tmp/hive/
[root@qianfeng01 hive] # hdfs dfs -chmod 750 /user/hive/warehouse
[root@qianfeng01 hive] # hdfs dfs -chmod 777 /tmp/hive
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/116582.html