MapReduce Forum

Permission Error with MapReduce

  • #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:

to create new topics or reply. | New User Registration

  • Author
  • #42865
    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?




    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.


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

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

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.