Created 08-30-2016 06:30 PM
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.
Created on 08-30-2016 06:39 PM - edited 08-19-2019 03:00 AM
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
Please note - This procedure will not take care of data migration.
Created on 08-30-2016 06:39 PM - edited 08-19-2019 03:00 AM
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
Please note - This procedure will not take care of data migration.
Created 08-30-2016 07:09 PM
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.
Created 08-31-2016 06:24 AM
Yes above change should work and also you should format the new name directory