HDFS Forum

hdfs /tmp dir issue

  • #44005
    Anupam Gupta
    Participant

    Hi All,

    I have delete tmp dir (as an hdfs user ) using cmd. $ hadoop fs -rmr /tmp .

    But after that I am not able to run any map reduce job from using user.
    hive query is also not running from hive shell.

    Getting access control exception like
    hive> select * from hivexml;
    FAILED: RuntimeException org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode=”/tmp”:hdfs:hdfs:drwxr-xr-x
    Kindly Help

    Thanks,
    Sandeep

to create new topics or reply. | New User Registration

  • Author
    Replies
  • #44013
    Dave
    Moderator

    Hi Anupam,

    Was there any reason to delete the /tmp directory on HDFS?

    Thanks

    Dave

    #44015
    Anupam Gupta
    Participant

    Hi Dave ,

    There was no reason but it was deleted instead of .Trash. by on of trainee developer, and we are getting access control exception for all of users.
    Kindly help on this issue.

    Thanks,
    Sandeep

    #44023
    Dave
    Moderator

    Hi Anupam,

    Can you create the /tmp directory (while using hdfs) and give it world writable (777) permissions. (hadoop fs -chmod -R 777 /tmp)
    chmod it to hdfs:hdfs using hadoop fs -chown -R hdfs:hdfs /tmp

    Then you will need to start the cluster again, as some components such as oozie put files in the tmp directory for use.

    Thanks

    Dave

    #44030
    Anupam Gupta
    Participant

    Thanks a lot Dave for your valuable response.

    Issue is resolved.

    Sandeep

The topic ‘hdfs /tmp dir issue’ is closed to new replies.

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.