Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Changing Namenode & DataNode directories in HDP 2.4.2

avatar
New Member

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

avatar
Master 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.

View solution in original post

3 REPLIES 3

avatar
Master 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.

avatar
New Member

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.

avatar
Rising Star

Hi @Narasimhan Kazhiyur

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