Interface Namesystem
- All Known Implementing Classes:
FSNamesystem
Namesystem operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCheck if snapshot roots are created for all existing snapshottable directories.getBlockCollection(long id) booleanbooleanisInSnapshot(long blockCollectionID) booleanIs this name system running?voidremoveXattr(long id, String xattrName) Remove xAttr from the inode.voidMethods inherited from interface org.apache.hadoop.hdfs.util.RwLock
hasReadLock, hasReadLock, hasWriteLock, hasWriteLock, readLock, readLock, readLockInterruptibly, readLockInterruptibly, readUnlock, readUnlock, readUnlock, writeLock, writeLock, writeLockInterruptibly, writeLockInterruptibly, writeUnlock, writeUnlock, writeUnlockMethods inherited from interface org.apache.hadoop.hdfs.server.namenode.SafeMode
isInSafeMode, isInStartupSafeMode
-
Method Details
-
isRunning
boolean isRunning()Is this name system running? -
getBlockCollection
-
getFSDirectory
FSDirectory getFSDirectory() -
startSecretManagerIfNecessary
void startSecretManagerIfNecessary() -
isInSnapshot
boolean isInSnapshot(long blockCollectionID) -
getCacheManager
CacheManager getCacheManager() -
getHAContext
HAContext getHAContext() -
inTransitionToActive
boolean inTransitionToActive()- Returns:
- Whether the namenode is transitioning to active state and is in the middle of the starting active services.
-
removeXattr
Remove xAttr from the inode.- Parameters:
id-xattrName-- Throws:
IOException
-
checkAndProvisionSnapshotTrashRoots
void checkAndProvisionSnapshotTrashRoots()Check if snapshot roots are created for all existing snapshottable directories. Create them if not.
-