How to recover unhealthy node

to create new topics or reply. | New User Registration

This topic contains 5 replies, has 3 voices, and was last updated by  Peter Teunissen 12 months ago.

  • Creator
    Topic
  • #49510

    Peter Teunissen
    Participant

    I’m installing HDP2.0 on Ubuntu 12.04 as a single node test setup. I got to the point where I’ve got HDFS and YARN installed and running. However the single datanode I’ve got shown as unhealthy in the YARN webapp. The message is 1/1 local-dirs turned bad: /grid/hadoop/hdfs/yarn/local;
    I noticed that I didn’t create the directory. So I created it and updated ownership and access rights. Even after reboots and restarts of the different daemons, the node is still shown as unhealthy.

    What additional things do I need to do to recover the datanode and get it ‘healthy’ again?

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

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

  • Author
    Replies
  • #50783

    Peter Teunissen
    Participant

    That solved the issue! After restarting yarn, the node is shown as healthy now.

    thanks

    Collapse
    #50778

    Dave
    Moderator

    Hi Peter,

    This directory should be owned by yarn:hadoop
    Can you change this directory and let me know if the problem persists?

    Thanks

    Dave

    Collapse
    #50774

    Peter Teunissen
    Participant

    @Dave:

    root@hadoop:/# ls -al /grid/hadoop/hdfs/yarn/local
    total 8,0K
    drwxr-xr-x 2 hdfs hadoop 4,0K mrt  3 15:47 .
    drwxr-xr-x 3 hdfs hadoop 4,0K mrt  3 15:47 ..
    root@hadoop:/# 
    
    Collapse
    #50672

    Dave
    Moderator

    Hi Peter,

    On this datanode can you run ls -al on /grid/hadoop/hdfs/yarn/local and print it here?

    Thanks

    Dave

    Collapse
    #50440

    Ryan Suarez
    Participant

    Same problem. Anyone?

    Collapse
Viewing 5 replies - 1 through 5 (of 5 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.