HIVE: java.net.URISyntaxException

+1 vote

I have set up hadoop and it works well. Now I want to set up Hive. When I start hive , it shows an error as

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

How to solve this error?

Oct 24, 2018 in Big Data Hadoop by digger
• 26,660 points

recategorized Oct 24, 2018 by digger 256 views

3 answers to this question.

0 votes

Put the following at the beginning of hive-site.xml

  <property>
    <name>system:java.io.tmpdir</name>
    <value>/tmp/hive/java</value>
  </property>
  <property>
    <name>system:user.name</name>
    <value>${user.name}</value>
  </property>

This should work.

answered Oct 24, 2018 by Omkar
• 68,860 points
0 votes

In the hive-site.xml, replace ${system:java.io.tmpdir}/${system:user.name} by /tmp/mydir

answered Dec 4, 2018 by Jaci
0 votes

Change in hfs-site.xml this properties

<name>hive.exec.scratchdir</name>
<value>/tmp/hive-${user.name}</value>

 <name>hive.exec.local.scratchdir</name>
 <value>/tmp/${user.name}</value>

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

<name>hive.scratch.dir.permission</name>
    <value>733</value>
answered Dec 4, 2018 by Roshan

Related Questions In Big Data Hadoop

0 votes
1 answer

Hadoop: Java code to get Hive table properties.

You can try this: org.apache.hadoop.hive.metastore.api.Table table=..........; org.apache.hadoop.hive.metastore.api.StorageDescriptor sd=table.getSd(); String loc=sd.getLocation(); String ...READ MORE

answered Nov 20, 2018 in Big Data Hadoop by Omkar
• 68,860 points
44 views
0 votes
1 answer

Error while connecting to Hive using Java JDBC

Use ​org.apache.hive.jdbc.HiveDriver as your driver. It ...READ MORE

answered Nov 21, 2018 in Big Data Hadoop by Omkar
• 68,860 points
224 views
0 votes
1 answer

Which java class handles the Input record encoding into files which store the tables in Hive?

Hey, This particular format will handle the input ...READ MORE

answered Jun 26, 2019 in Big Data Hadoop by Gitika
• 25,460 points
35 views
0 votes
1 answer

Which java class handles the output record encoding into files which result from Hive queries?

Hey, This particular class handles the output record ...READ MORE

answered Jun 26, 2019 in Big Data Hadoop by Gitika
• 25,460 points
40 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,840 points
3,910 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,840 points
538 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
20,791 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,290 points
1,472 views
0 votes
1 answer

Hadoop: Format namenode gives error: Shutting down NameNode at java.net.UnknownHostException

UnknownHostException is thrown when hadoop tries to resolve ...READ MORE

answered Nov 12, 2018 in Big Data Hadoop by Omkar
• 68,860 points
834 views