一,问题描述:
登录到hive数据仓库后,输入一些命令,例如(show databases ,show tables),会报出如下错误:
Failed with exception Java.io.IOException:java.lang.IllegalArgumentException: java.NET.URISyntaxException: Relative path in absolute URI: ${system:user.name}
二,解决的方法如下:
1,进入apache-hive-2.1.1-bin文件夹下的conf文件下,找到hive-site.xml,具体步骤:
apache-hive-2.1.1-bin -> conf -> hive-site.xml
然后找到如下属性:
<property>
<name>hive.exec.local.scratchdir</name>
<value>/home/lch/software/Hive/apache-hive-2.1.1-bin/tmp/${system:user.name}</value>
<description>Local scratch space for Hive jobs</description>
</property>
把它修改成如下:
<property>
<name>hive.exec.local.scratchdir</name>
<value>/home/lch/software/Hive/apache-hive-2.1.1-bin/tmp/${user.name}</value>
<description>Local scratch space for Hive jobs</description>
</property>
三,问题解决,再运行hive命令就不会出现上述的问题了.