Spark error: Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable.

0 votes

Hi Team,

Following command is not working for me: 

C:\Users\PROFESSIONAL\winutils\bin\winutils.exe chmod 777 C:\tmp\hive  

Getting below error while compiling program:

Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rw-rw-rw-

Jul 11, 2019 in Apache Spark by Raghu
1,123 views

1 answer to this question.

0 votes

Give  read-write permissions to  C:\tmp\hive folder

Cd to winutils bin folder and execute below commands with path of tmp /hive folder

$ winutils.exe  chmod 777  C:\tmp\hive
answered Jul 11, 2019 by Rajiv

Related Questions In Apache Spark

0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
+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,870 points
4,537 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,870 points
643 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
25,637 views
0 votes
1 answer

Caused by: java.lang.NumberFormatException: Empty String

Hi@akhtar, As we know text files are in ...READ MORE

answered Jan 31 in Apache Spark by MD
• 8,110 points
80 views
0 votes
1 answer

Copy file from local to hdfs from the spark job in yarn mode

Refer to the below code: import org.apache.hadoop.conf.Configuration import org.apache.hadoop.fs.FileSystem import ...READ MORE

answered Jul 24, 2019 in Apache Spark by Yogi
719 views