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可以正常启动