0

My hive-site.xml configuration is

When I use hive:

show databases;

The exception that I'm getting is:

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
2
  • <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>tmp/hive-${user.name}/root</value> <description>Local scratch space for Hive jobs</description> </property> <property> Commented Dec 4, 2016 at 15:06
  • Please specify your question Commented Dec 4, 2016 at 15:06

1 Answer 1

3

Change the hive-site.xml with below properties

<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>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.