1

When I am running map reduce job in the Mac terminal as:

PawandeepSingh1$ hadoop jar MaximumTemperature.jar
Exception in thread "main" java.io.IOException: Mkdirs failed to create /var/folders/v1/lyx_f0rj615cy8s54_bk053h0000gp/T/hadoop-unjar3698429834837790177/META-INF/license
    at org.apache.hadoop.util.RunJar.ensureDirectory(RunJar.java:128)
    at org.apache.hadoop.util.RunJar.unJar(RunJar.java:104)
    at org.apache.hadoop.util.RunJar.unJar(RunJar.java:81)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:209)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

I have seen similar question which says I don't have permissions to run the job. Can anyone give me step wise solution.

Thank You in advance

Community
  • 1
  • 1
Pawandeep Singh
  • 830
  • 1
  • 13
  • 25

3 Answers3

1

You probably don't have permission on the hdfs filesystem to create the dirs for your job. Are you submitting to a cluster or are you running a local testing environment. Can you su to the user that has perms to the /var folders on hdfs? If you aren't the admin on your cluster you will need to have the admin either add you to a group ( hdfs, hadoop) that does have permissions on hdfs or give you permissions to run your jobs as a privileged user either with sudo or ability to su.

Cody Stevens
  • 424
  • 4
  • 9
0

You are running the jar with username ' PawandeepSingh1 '. These users generally do not have write permission to /var folder . Try to run the command like this

sudo hadoop jar MaximumTemperature.jar

prashanthp
  • 85
  • 2
  • 8
0

in the question you quoted, look at the most upvoted (not the selected) solution.

Community
  • 1
  • 1
roee
  • 859
  • 1
  • 7
  • 20