Package org.apache.hadoop.fs
Interface SafeMode
public interface SafeMode
Whether the given filesystem is in any status of safe mode.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleansetSafeMode(SafeModeAction action) Enter, leave, or get safe mode.booleansetSafeMode(SafeModeAction action, boolean isChecked) Enter, leave, or get safe mode.
-
Method Details
-
setSafeMode
Enter, leave, or get safe mode.- Parameters:
action- One ofSafeModeActionLEAVE, ENTER, GET, FORCE_EXIT.- Returns:
- true if the action is successfully accepted, otherwise false means rejected.
- Throws:
IOException- if set safe mode fails to proceed.
-
setSafeMode
Enter, leave, or get safe mode.- Parameters:
action- One ofSafeModeActionLEAVE, ENTER, GET, FORCE_EXIT.isChecked- If true check only for Active metadata node / NameNode's status, else check first metadata node / NameNode's status.- Returns:
- true if the action is successfully accepted, otherwise false means rejected.
- Throws:
IOException- if set safe mode fails to proceed.
-