Last active
July 27, 2021 07:24
-
-
Save hochun836/8d2d461498f29a6c594453148dcd2c69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hdfs | |
hdfs version | |
hdfs namenode -format // IMPORTANT: format the DFS filesystem | |
# hadoop | |
hadoop fs -ls <dfs-path> | |
hadoop fs -cat <dfs-path> | |
hadoop fs -get <dfs-path> | |
hadoop fs -put <local-path> <dfs-path> | |
hadoop fs -mkdir <dfs-path> | |
hadoop fs -rm -r <dfs-path> | |
hadoop dfsadmin -report | |
hadoop fsck <dfs-path> -files -blocks // 'fsck' is a hdfs filesystem checking utility |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment