Support Questions

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

Moving Journal Node Directories

avatar
Rising Star

What is the correct process in moving the Journal Node Directories to a different disk?

Lets say I have 3 servers, each running a Journal Node Service:

server1

server2

server3

The Journal Nodes are currently writing to /var/lib/hadoop/hdfs/journal

I want to change this to /data1/hadoop/hdfs/journal for each server

I've tried:

1) Stopping Namenodes (HA)

2) Copying data from /var/lib/hadoop/hdfs/journal to /data1/hadoop/hdfs/journal

3) Changing the dir property for the Journal Nodes in Ambari

4) Starting the Namenodes

This did not seem to work

1 ACCEPTED SOLUTION

avatar
Expert Contributor

@Nasheb Ismaily Did you update new directory in Ambari - HDFS - configs - dfs.journalnode.edits.dir ?

Did you restart JNs after copying the data?

If you have done that,

Clean /data1/hadoop/hdfs/journal on all three JNs and restart all JNs

As HDFS user on any namenode , run hdfs namenode -initializeSharedEdits

And then start your Namenodes .

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

@Nasheb Ismaily Did you update new directory in Ambari - HDFS - configs - dfs.journalnode.edits.dir ?

Did you restart JNs after copying the data?

If you have done that,

Clean /data1/hadoop/hdfs/journal on all three JNs and restart all JNs

As HDFS user on any namenode , run hdfs namenode -initializeSharedEdits

And then start your Namenodes .

avatar
Explorer

Note that Manage Journal Node is now available through UI in Ambari 2.5.1

https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-operations/content/manage_journal...