热门IT资讯网

hive 解决hive-site.xml 配置问题

发表于:2024-11-24 作者:热门IT资讯网编辑
编辑最后更新 2024年11月24日,Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolut

Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
at org.apache.hadoop.fs.Path.initialize(Path.java:206)
at org.apache.hadoop.fs.Path.(Path.java:172)
at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:563)
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:508)
... 7 more
Caused by: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
at java.net.URI.checkPath(URI.java:1823)
at java.net.URI.(URI.java:745)
at org.apache.hadoop.fs.Path.initialize(Path.java:203)
... 10 more

解决:

1、 创建一个目录:/home/hive/data

2、把hive-site.xml 文件中有${system:java.io.tmpdir}/${Bsystem:user.name}

更换成 /home/hive/data

0