Permission Error with MapReduce

to create new topics or reply. | New User Registration

This topic contains 2 replies, has 2 voices, and was last updated by  gehhrald 1 year, 4 months ago.

  • Creator
  • #42646


    Hi, I have an error while running the mapreduce jar file in Eclipse Kelper. I have 2 slaves set up using Hortonworks CentOS and 1 Master set up in my Virtual Machine.

    Here is the error message from Eclipse console:

    13/11/01 10:51:03 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
    13/11/01 10:51:03 ERROR security.UserGroupInformation: PriviledgedActionException as:Viewer Failed to set permissions of path: \tmp\hadoop-(myusername)\mapred\staging\(myusername)1688921109\.staging to 0700
    Exception in thread "main" Failed to set permissions of path: \tmp\hadoop-(myusername)\mapred\staging\(myusername)1688921109\.staging to 0700
    at org.apache.hadoop.fs.FileUtil.checkReturnValue(
    at org.apache.hadoop.fs.FileUtil.setPermission(
    at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(
    at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(
    at org.apache.hadoop.fs.FilterFileSystem.mkdirs(
    at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(
    at org.apache.hadoop.mapred.JobClient$
    at org.apache.hadoop.mapred.JobClient$
    at Method)
    at Source)
    at org.apache.hadoop.mapred.JobClient.submitJobInternal(
    at org.apache.hadoop.mapred.JobClient.submitJob(
    at org.apache.hadoop.mapred.JobClient.runJob(
    at hdfs.HashMapReduce.main(

    The code i’m running is the wordcount v1.0 example given on Apache Hadoop website:

Viewing 2 replies - 1 through 2 (of 2 total)

You must be to reply to this topic. | Create Account

  • Author
  • #43034



    Thanks for the link. I’m unable to run the example successfully on the HDP cluster. However, I tried the “hadoop-examples.jar” to run the wordcount and it works inside the HDP. Still can’t solve the permission issue despite trying the solution in the link provided by Koelli.



    Koelli Mungee


    Are you able to run the same example successfully on your HDP Cluster. Perhaps you may be hitting the same issue documented in this jira. Can you have a look?


Viewing 2 replies - 1 through 2 (of 2 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.