Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7324

haadmin command usage prints incorrect command name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.5.1
    • None
    • ha, tools
    • None
    • Reviewed

    Description

      Scenario:
      =======
      Try the help command for hadadmin like following..
      Here usage is coming as "DFSHAAdmin -ns", Ideally this not availble which we can check following command.

      [root@linux156 bin]# ./hdfs haadmin
      No GC_PROFILE is given. Defaults to medium.
      Usage: DFSHAAdmin [-ns <nameserviceId>]
      [-transitionToActive <serviceId> [--forceactive]]
      [-transitionToStandby <serviceId>]
      [-failover [--forcefence] [--forceactive] <serviceId> <serviceId>]
      [-getServiceState <serviceId>]
      [-checkHealth <serviceId>]
      [-help <command>]

      Generic options supported are
      -conf <configuration file> specify an application configuration file
      -D <property=value> use value for given property
      -fs <local|namenode:port> specify a namenode
      -jt <local|jobtracker:port> specify a job tracker
      -files <comma separated list of files> specify comma separated files to be copied to the map reduce cluster
      -libjars <comma separated list of jars> specify comma separated jar files to include in the classpath.
      -archives <comma separated list of archives> specify comma separated archives to be unarchived on the compute machines.

      The general command line syntax is
      bin/hadoop command [genericOptions] [commandOptions]

      [root@linux156 bin]# ./hdfs DFSHAAdmin -ns 100
      Error: Could not find or load main class DFSHAAdmin

      Attachments

        1. HDFS-7324.patch
          0.6 kB
          Brahma Reddy Battula

        Issue Links

          Activity

            People

              brahmareddy Brahma Reddy Battula
              brahmareddy Brahma Reddy Battula
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: