hive> 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.744 seconds
hive> 
解决办法:找到hive安装目录下conf配置文件目录:打开hive-site.xml文件
vi hive-site.xml找到如下属性:
<property>
    <name>hive.querylog.location</name>
    <value>${system:java.io.tmpdir}/${system:user.name}</value>
    <description>Location of Hive run time structured log file</description>
  </property>
改为:
<property>
    <name>hive.querylog.location</name>
    <value>${system:java.io.tmpdir}/${user.name}</value>
    <description>Location of Hive run time structured log file</description>
  </property>





