Moving the JournalNode edits directory for a role instance using Cloudera Manager
Depending on your requirements, you can change the location of the edits directory for one JournalNode instance.
-
Reconfigure the JournalNode Edits Directory.
- Go to the HDFS service in Cloudera Manager.
- Click JournalNode under Status Summary.
- Click the JournalNode link for the instance you are changing.
- Click the Configuration tab.
-
Set
dfs.journalnode.edits.dir
to the path of the newjn
directory.
- Move the location of the JournalNode (
jn
) directory at the command line.- Connect to host of the JournalNode.
-
Copy the JournalNode (
jn
) directory to its new location with the-a
option to preserve permissions.cp -a /<old_path_to_jn_dir>/jn /<new_path_to_jn_dir>/jn
-
Rename the old
jn
directory to avoid confusion.mv /<old_path_to_jn_dir>/jn /<old_path_to_jn_dir>/jn_to_delete
- Redeploy the HDFS client configuration.
- Go to the HDFS service.
- Select Actions > Deploy Client Configuration.
-
Perform a rolling restart for HDFS by selecting Actions > Rolling Restart.
Use the default settings.
- From the command line, delete the old
jn_to_delete
directory.