- ,问题描述:
登录到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%7D
> show databases;
OK
Failed with exception java.io.IOException:java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:user.name%7D
Time taken: 0.443 seconds
>hive
- ,解决的方法如下:
进入apache-hive-2.1.1-bin文件夹下的conf文件下,找到hive-site.xml,具体步骤:
cd /export/server/hive/conf
vi hive.site.xml
然后找到如下属性:
<property>
<name>hive.exec.local.scratchdir</name>
<value>/export/server/hive/data/${system:user.name}</value>
<description>Local scratch space for Hive jobs</description>
</property>
把它修改成如下:
<property>
<name>hive.exec.local.scratchdir</name>
<value>/export/server/hive/data/${user.name}</value>
<description>Local scratch space for Hive jobs</description>
</property>
三,问题解决,再运行hive命令就不会出现上述的问题了.
原文链接