【问题标题】:FAILED: IllegalArgumentException java.net.URISyntaxException: Relative path in absolute URI:失败:IllegalArgumentException java.net.URISyntaxException:绝对 URI 中的相对路径:
【发布时间】:2016-12-04 15:06:07
【问题描述】:

我的hive-site.xml 配置是

当我使用 hive 时:

show databases;

我得到的例外是:

FAILED: IllegalArgumentException java.net.URISyntaxException: 
Relative path in absolute URI: file:./tmp/hive-root/root/74dc7e51-1d24-4397-9321-9b8c651ee212/hive_2016-12-04_22-55-36_784_2074916962149947374-1

【问题讨论】:

  • hive.exec.scratchdir/tmp/hive-${user.name}Hive 的 HDFS 根暂存目录使用 write all (733) 权限创建的作业。对于每个连接用户,一个 HDFS 暂存目录:${hive.exec.scratchdir}/使用 ${hive.scratch.dir.permission} 创建。hive.exec.local.scratchdirtmp/hive-${user .name}/rootHive 作业的本地暂存空间
  • 请说明您的问题

标签: java hadoop hive bigdata


【解决方案1】:

使用以下属性更改 hive-site.xml

<name>hive.exec.scratchdir</name>
<value>/tmp/hive</value>

 <name>hive.exec.local.scratchdir</name>
 <value>/tmp/hive</value>

<name>hive.downloaded.resources.dir</name>
<value>/tmp/hive/${hive.session.id}_resources</value>

<name>hive.scratch.dir.permission</name>
<value>733</value>

【讨论】:

    猜你喜欢
    • 2022-01-17
    • 1970-01-01
    • 2018-07-27
    • 2017-10-04
    • 1970-01-01
    • 1970-01-01
    • 2020-10-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多