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
7,018 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
2 answers
+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
• 11,380 points
10,602 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
• 11,380 points
2,207 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
104,777 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, 2020 in Apache Spark by MD
• 95,440 points
4,232 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
3,417 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP