原创
Hive启动报错Relative path in absolute URI: xxx
温馨提示:
本文最后更新于 2019年11月28日,已超过 1,882 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我。
Exception in thread "main" 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:263)
at org.apache.hadoop.fs.Path.<init>(Path.java:221)
at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:663)
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:586)
at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:553)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:750)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
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.<init>(URI.java:745)
at org.apache.hadoop.fs.Path.initialize(Path.java:260)
... 12 more
解决办法
搜索system:java.io.tmpdir
,将搜索出来的结果全部替换。(前面从6 ~ 9配置了,这里不会报错)
搜索system:java.io.tmpdir
,将搜索出来的结果全部替换,如下:
<!-- 6.修改为/software/hive/iotmp -->
<property>
<name>hive.exec.local.scratchdir</name>
<value>/software/hive/iotmp</value>
<description>Local scratch space for Hive jobs</description>
</property>
<!-- 7.修改为/software/hive/iotmp -->
<property>
<name>hive.downloaded.resources.dir</name>
<value>/software/hive/iotmp</value>
<description>Temporary local directory for added resources in the remote file system.</description>
</property>
<!-- 8.修改为/software/hive/iotmp -->
<property>
<name>hive.querylog.location</name>
<value>/software/hive/iotmp</value>
<description>Location of Hive run time structured log file</description>
</property>
<!-- 9.修改为/software/hive/iotmp -->
<property>
<name>hive.server2.logging.operation.log.location</name>
<value>/software/hive/iotmp</value>
<description>Top level directory where operation logs are stored if logging functionality is enabled</description>
</property>
修改之后,启动成功:
- 本文标签: Hive
- 本文链接: http://www.lzhpo.com/article/99
- 版权声明: 本文由lzhpo原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权