show databsaes casues FAILED:IllegalArgumentException java.net.URISyntaxException:绝对URI中的相对路径:file

时间:2017-11-06 20:17:36

标签: java hadoop hive hdfs

我是hadoop的新手,并且一直在使用本教程安装hive http://www.bogotobogo.com/Hadoo/BigData_hadoop_Hive_Install_On_Ubuntu_16_04.php 虽然我有一个14.04系统。 安装配置单元后的最后一步,我使用的是HQL,特别是处理输出的那些,如:

hive > show tables; or `hive > show databases;`

我得到输出为

而不是OK
FAILED: IllegalArgumentException java.net.URISyntaxException: Relative path in absolute URI: file:./%20/tmp/hduser%20/89ac0809-64cc-4200-82c7-1d52f1b6a997/hive_2017-11-07_01-31-29_360_4783575963309532883-1

所有其他命令工作正常,但上述命令不起作用。我在线检查并对我的hive-site.xml文件进行了一些更改,但没有任何改变 文件的重要属性:

蜂房-site.xml中

<property>
    <name>hive.exec.scratchdir</name>
    <value>/tmp/hive-${user.name}</value>
    <description>HDFS root scratch dir for Hive jobs which gets created with write all (733) permission. For each connecting user, an HDFS scratch dir: ${hive.exec.scratchdir}/&lt;username&gt; is created, with ${hive.scratch.dir.permission}.</description>
  </property>

 <property>
    <name>hive.exec.local.scratchdir</name>
  <!-- <value>${system:java.io.tmpdir}/${system:user.name}</value>-->
<value> /tmp/${user.name} </value>
    <description>Local scratch space for Hive jobs</description>
  </property>
  <property>
    <name>hive.downloaded.resources.dir</name>
 <!-- <value>${system:java.io.tmpdir}/${hive.session.id}_resources</value>
-->
<value>/home/hduser/hive/tmp/${hive.session.id}_resources</value>
    <description>Temporary local directory for added resources in the remote file system.</description>
  </property>

 <property>
    <name>hive.scratch.dir.permission</name>
    <value>733</value>
    <description>The permission for the user specific scratch directories that get created.</description>
  </property>

我尝试过许多事情但是我只是被困在这里。有没有解决的办法 ?

0 个答案:

没有答案