无法从$ HIVE_HOME

时间:2016-07-04 17:02:25

标签: ubuntu hadoop hive derby

我已经安装了带有Derby 10.12.1.1的Hive 2.1.0我可以从:

运行Hive
  

$ HIVE_HOME

但是当我从其他位置(例如root或其他地方)运行时会抛出错误:

  

线程“main”中的异常java.lang.RuntimeException:无法创建目录$ / tmp / 98e1866e-f8c7-451d-b958-1f773f0c4b02_resources       在org.apache.hadoop.hive.ql.util.ResourceDownloader.ensureDirectory(ResourceDownloader.java:123)       在org.apache.hadoop.hive.ql.util.ResourceDownloader。(ResourceDownloader.java:48)       在org.apache.hadoop.hive.ql.session.SessionState。(SessionState.java:376)       在org.apache.hadoop.hive.ql.session.SessionState。(SessionState.java:350)       在org.apache.hadoop.hive.cli.CliSessionState。(CliSessionState.java:60)       在org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:663)       在org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)       at java.lang.reflect.Method.invoke(Method.java:498)       在org.apache.hadoop.util.RunJar.run(RunJar.java:221)       在org.apache.hadoop.util.RunJar.main(RunJar.java:136)

有人可以帮帮我吗?

1 个答案:

答案 0 :(得分:1)

我通过编辑hive-site.xml找出答案

moment.locale('pl');

并将其更改为

<property>
<name>hive.downloaded.resources.dir</name>
<value>$/tmp/${hive.session.id}_resources</value>
<description>Temporary local directory for added resources in the remote file system.</description>

问题解决了