Hive报错 Failed with exception java.io.IOException:java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:user.name%7D

报错信息如下

Failed with exception java.io.IOException:java.lang.IllegalArgumentException: 
java.net.URISyntaxException: Relative path in absolute URI: ${system:user.name%7D

解决方法:

编辑 hive-site.xml 文件,添加下边的属性

<property>
<name>system:java.io.tmpdir</name>
<value>/home/hive/apache-hive-1.2.2-bin/iotmp</value>
<description/>
</property>

并修改属性

hive.exec.local.scratchdir

 <property>
    <name>hive.exec.local.scratchdir</name>
    <value>/home/hive/apache-hive-1.2.2-bin/tmp/${user.name}</value>
    <description>Local scratch space for Hive jobs</description>
  </property>

问题就可以解决了。

 

点赞