hive启动报错 java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7B

启动hive报错:

[root@master conf]# hive

Logging initialized using configuration in file:/usr/local/hive/conf/hive-log4j.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop2/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hive/lib/hive-jdbc-1.1.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:472)
    at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)
    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
    at org.apache.hadoop.fs.Path.initialize(Path.java:205)
    at org.apache.hadoop.fs.Path.<init>(Path.java:171)
    at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:515)
    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:458)
    ... 8 more
Caused by: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
    at java.net.URI.checkPath(URI.java:1804)
    at java.net.URI.<init>(URI.java:752)
    at org.apache.hadoop.fs.Path.initialize(Path.java:202)
    ... 11 more
[root@master conf]# hive

Logging initialized using configuration in file:/usr/local/hive/conf/hive-log4j.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop2/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hive/lib/hive-jdbc-1.1.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:472)
    at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)
    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
    at org.apache.hadoop.fs.Path.initialize(Path.java:205)
    at org.apache.hadoop.fs.Path.<init>(Path.java:171)
    at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:515)
    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:458)
    ... 8 more
Caused by: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
    at java.net.URI.checkPath(URI.java:1804)
    at java.net.URI.<init>(URI.java:752)
    at org.apache.hadoop.fs.Path.initialize(Path.java:202)
    ... 11 more

配置文件修改如下属性:(主要是设置目录)

<property>
    <name>hive.exec.scratchdir</name>
    <value>/tmp/hive</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>/tmp/hive/local</value>
    <description>Local scratch space for Hive jobs</description>
  </property>
<property>
    <name>hive.downloaded.resources.dir</name>
    <value>/tmp/hive/resources</value>
    <description>Temporary local directory for added resources in the remote file system.</description>
  </property>

hive启动报错 java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7B相关推荐

  1. hive 启动报错java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%..

    报错内容: 从报错信息中可以看到是路径:${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D错误. 修改hive组件配置文件hive-site.xml( ...

  2. hive 配置 mysql时的问题(Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D)

    因为 hive 的映射工具--metastore,默认存放在 derby 中,而derby数据库的一大缺陷在于其不支持并发访问(早期的hive是这样).当我们使用 mysql 作为其远程仓库时,自然需 ...

  3. Hive启动报错:java.net.URISyntaxException: Relative path in absolute URI: ${system:user.name%7D

    hive> show databases; OK Failed with exception java.io.IOException:java.lang.IllegalArgumentExcep ...

  4. 【已解决】FAILED: Illegal Argument Exception java.net.URISyntaxException: Relative path in absolute URI

    原因:hive中配置文件没有正确配置 解决:针对这个问题,可以添加以下属性进去.你的配置文件应该是hive-site.xml. 请注意你的路径将下面的路径/var/develop/apache-hiv ...

  5. hive启动报错:Relative path in absolute URI:${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D

    hive启动时遇到以下错误: Exception in thread "main"java.lang.RuntimeException: java.lang.IllegalArgu ...

  6. hive配置遇到的问题( Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D)

    遇到的异常详情如下: Exception in thread "main"java.lang.RuntimeException: java.lang.IllegalArgument ...

  7. Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D

    hive启动报错: [jifeng@feng02 hive]$ hiveLogging initialized using configuration in jar:file:/home/jifeng ...

  8. Hive 启动报错java.net.URISyntaxException: Relative path in absolute URI 解决方法

    linux安装hive 遇到问题:Hive 启动报错java.net.URISyntaxException: Relative path in absolute URI 解决方法 方法记录 提示:这里 ...

  9. Spark:java.net.URISyntaxException: Relative path in absolute URI: file:D:/XXX/SparkFaultBench/spark-

    错误: Spark:java.net.URISyntaxException: Relative path in absolute URI: file:D:/XXX/SparkFaultBench/sp ...

  10. Hive启动报错:java.lang.ClassNotFoundException: org.apache.tez.dag.api.TezConfiguration

    <!--Hive启动报错:Caused by: java.lang.ClassNotFoundException: org.apache.tez.dag.api.TezConfiguration ...

最新文章

  1. 87.VGA 88.FPGA
  2. Butter Knife:一个安卓视图注入框架
  3. 使用redis实现异步消息队列
  4. 《研磨设计模式》chap24 桥接模式bridge(2)场景应用
  5. 200915阶段一C++模板
  6. 【课程】MIT深度学习课程:架起理论与实践的桥梁
  7. go 递归tree关系_Go实现一个二叉搜索树
  8. 通过v$sqlarea,v$sql查询最占用资源的查询
  9. 苹果ipad怎么录屏_追剧,玩游戏必备,这才是苹果手机正确的投屏操作,网友:没白拿...
  10. ip地址解析(scala)
  11. 用艾宾浩斯曲线记忆周期来背单词是否有理论依据?
  12. 创建variation model (差异模型)
  13. 本地html本地xml文件怎么打开,处理xml文件怎么打开
  14. C语言数据的表现形式及其运算
  15. 6s英语语法笔记(图片炸了)
  16. unity3d-unet小demo
  17. QT4.6.3在TQ2440上的移植
  18. 使用xetex直接由围棋棋谱文件创建pdf书籍
  19. C# 语言历史版本特性(C# 1.0到C# 8.0汇总
  20. springboot微信公众号发送模板消息

热门文章

  1. Vue项目webpack打包部署到Tomcat,刷新报404错
  2. Exchange 2007 前端 IIS 内存占用过高
  3. CKEditor4.7怎样实现上传图片,浏览服务器(无需ckfinder),nodejs图片管理,字体居中,图片居中(超详细)...
  4. 【SpringMVC学习02】走进SpringMVC的世界
  5. PHP SESSION
  6. 使用Revel(go)开发网站
  7. 安卓图片框架:universal-image-loader的高速使用
  8. 【linux】——FTP出现500 OOPS: cannot change directory的解决方法
  9. [MySQL FAQ]系列 -- Linux命令行下快速监控mysql
  10. Illustrator 教程,如何在 Illustrator 中裁剪、分割和修剪作品?