hive启动的时候出现错误:
Exception in thread “main” java.lang.RuntimeException: 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
错误原因:报错信息中已经说的很明白了“Relative path in absolute URI”
解决方法:hive-site.xml文件问题
我的hive-site.xml是使用的模板hive-default.xml.template
首先打开hive-site.xml
vim hive-site.xml
搜索“${system:java.io.tmpdir”应该是有四个匹配
将value的值全部改为绝对路径

在vim中“/”是搜索直接输入“/”后面跟要搜索的内容即可
改完后重新启动hive可以正常启动
本文介绍了一种Hive启动时遇到的错误“Relative path in absolute URI”,并详细说明了如何通过修改hive-site.xml文件中的相对路径为绝对路径来解决该问题。
706

被折叠的 条评论
为什么被折叠?



