Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Changing Namenode & DataNode directories in HDP 2.4.2

Solved Go to solution

Changing Namenode & DataNode directories in HDP 2.4.2

The Namenode & Datanode directories in HDFS default pointing to sda1(which has less space). I want to point the directories to sdb1 which has larger space. what is the procedure to change the Namenode & Datanode directories. As of now i do not have any data on HDFS so do not have problem of losing data while changing directories. Please let me know the steps. Below is the screen shot.

image.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Changing Namenode & DataNode directories in HDP 2.4.2

Super Guru
@Narasimhan Kazhiyur

Login to Ambari UI --> Click on HDFS service --> Click on configs --> Search for data.dir --> Change the location --> Restart required services via Ambari

Please refer below screenshot

7094-screen-shot-2016-08-30-at-114130-am.png

Please note - This procedure will not take care of data migration.

3 REPLIES 3

Re: Changing Namenode & DataNode directories in HDP 2.4.2

Super Guru
@Narasimhan Kazhiyur

Login to Ambari UI --> Click on HDFS service --> Click on configs --> Search for data.dir --> Change the location --> Restart required services via Ambari

Please refer below screenshot

7094-screen-shot-2016-08-30-at-114130-am.png

Please note - This procedure will not take care of data migration.

Highlighted

Re: Changing Namenode & DataNode directories in HDP 2.4.2

Hi @Kuldeep Kulkarni. In the datanode & namenode directories path i am giving "/mnt/resource/hadoop/hdfs/namenode & /mnt/resource/hadoop/hdfs/data" .Is this right ?

Please refer the attached screen shot of available partitions image.png.

Thank you.

Re: Changing Namenode & DataNode directories in HDP 2.4.2

Contributor

Hi @Narasimhan Kazhiyur

Yes above change should work and also you should format the new name directory

Don't have an account?
Coming from Hortonworks? Activate your account here