• Home
  • LLMs
  • Docker
  • Kubernetes
  • Java
  • Maven
  • About
Big Data | HDFS Commands
  1. References
  2. help
  3. Options
  4. Subcommand: Administration Commands
  5. Subcommand: Client Commands
  6. Subcommand: Daemon Commands

  1. References
    See this page for more details about HDFS Commands:
    https://hadoop.apache.org/docs/r3.1.2/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html
  2. Usage
    Usage: hdfs [OPTIONS] SUBCOMMAND [SUB-SUBCOMMAND OPTIONS]

    OPTIONS is none or any of the options listed bellow.
    SUBCOMMAND is one of the subcommands listed bellow.
    SUBCOMMAND print help (as listed bellow) when invoked without parameters or with "-help" parameter: hdfs --help.
  3. Options
    --help                             usage information
    --buildpaths                       attempt to add class files from build tree
    --config dir                       Hadoop config directory
    --daemon (start|status|stop)       operate on a daemon
    --hostnames list[,of,host,names]   hosts to use in worker mode
    --hosts filename                   list of hosts to use in worker mode
    --debug                            turn on shell script debug mode
    --loglevel level                   set the log4j level for this command
    --workers                          turn on worker mode
  4. Subcommand: Administration Commands
    dfsadmin             run a DFS admin client
    cacheadmin           configure the HDFS cache
    crypto               configure HDFS encryption zones
    debug                run a Debug Admin to execute HDFS debug commands
    dfsrouteradmin       manage Router-based federation
    ec                   run a HDFS ErasureCoding CLI
    fsck                 run a DFS filesystem checking utility
    haadmin              run a DFS HA admin client
    jmxget               get JMX exported values from NameNode or DataNode.
    oev                  apply the offline edits viewer to an edits file
    oiv                  apply the offline fsimage viewer to an fsimage
    oiv_legacy           apply the offline fsimage viewer to a legacy fsimage
    storagepolicies      list/get/set block storage policies
  5. Subcommand: Client Commands
    dfs                  run a filesystem command on the file system
    version              print the version
    classpath            prints the class path needed to get the hadoop jar and the required libraries
    envvars              display computed Hadoop environment variables
    fetchdt              fetch a delegation token from the NameNode
    getconf              get config values from configuration
    groups               get the groups which users belong to
    lsSnapshottableDir   list all snapshottable dirs owned by the current user
    snapshotDiff         diff two snapshots of a directory or diff the current directory contents with a snapshot
  6. Subcommand: Daemon Commands
    datanode             run a DFS datanode
    namenode             run the DFS namenode
    secondarynamenode    run the DFS secondary namenode
    journalnode          run the DFS journalnode
    dfsrouter            run the DFS router
    balancer             run a cluster balancing utility
    diskbalancer         Distributes data evenly among disks on a given node
    httpfs               run HttpFS server, the HDFS HTTP Gateway
    mover                run a utility to move block replicas across storage types
    nfs3                 run an NFS version 3 gateway
    portmap              run a portmap service
    zkfc                 run the ZK Failover Controller daemon
© 2025  mtitek