Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Moving Secondary NameNode Checkpoint directory

avatar

Hi,

The Secondary NameNode (SNN) checkpoint directory at /tmp/hadoop/hdfs/namesecondary is filling up tmp and I would like to move it. What is the best way to do this? Also once moved, can I just RM -R all data in the old directory or do I need to copy it over?

Thanks,

1 ACCEPTED SOLUTION

avatar

From Ambari perspective, if you stop HDFS, modify the config property shown below, move all content to the new location it will likely work.

Someone from HDFS team can confirm if there is any affinity to the actual folder path.

<property>
      <name>dfs.namenode.checkpoint.dir</name>
      <value>/hadoop/hdfs/namesecondary</value>
</property>

View solution in original post

3 REPLIES 3

avatar

From Ambari perspective, if you stop HDFS, modify the config property shown below, move all content to the new location it will likely work.

Someone from HDFS team can confirm if there is any affinity to the actual folder path.

<property>
      <name>dfs.namenode.checkpoint.dir</name>
      <value>/hadoop/hdfs/namesecondary</value>
</property>

avatar

HDFS has no affinity to a specific path for this setting.

avatar
Super Collaborator

Apart from the fact that the partition is getting full, the main reason I see to move the checkpoint directory is that you cannot trust that the data under /tmp won't be wiped out after a reboot of your server.

In general, avoid putting any kind of Hadoop information (data or metadata) under /tmp, unless you are sure this is kind of temporary or non critical information.