Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6832

Fix the usage of 'hdfs namenode' command

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Target Version/s:

      Description

      [root@trunk ~]# hdfs namenode -help
      Usage: java NameNode [-backup] | 
      	[-checkpoint] | 
      	[-format [-clusterid cid ] [-force] [-nonInteractive] ] | 
      	[-upgrade [-clusterid cid] [-renameReserved<k-v pairs>] ] | 
      	[-upgradeOnly [-clusterid cid] [-renameReserved<k-v pairs>] ] | 
      	[-rollback] | 
      	[-rollingUpgrade <downgrade|rollback> ] | 
      	[-finalize] | 
      	[-importCheckpoint] | 
      	[-initializeSharedEdits] | 
      	[-bootstrapStandby] | 
      	[-recover [ -force] ] | 
      	[-metadataVersion ]  ]
      

      There're some issues in the usage to be fixed.

      1. "Usage: java NameNode" should be "Usage: hdfs namenode"
      2. -rollingUpgrade started option should be added
      3. The last ']' should be removed.
      1. hdfs-6832_001.txt
        1 kB
        skrho
      2. hdfs-6832_002.txt
        2 kB
        skrho
      3. hdfs-6832.txt
        2 kB
        skrho

        Activity

        Hide
        Akira AJISAKA added a comment -

        Pooja Gupta, feel free to create a patch and attach it to this jira.
        Unfortunately, I don't have the permission to assign you. A committer will assign you when the patch is committed.

        Show
        Akira AJISAKA added a comment - Pooja Gupta , feel free to create a patch and attach it to this jira. Unfortunately, I don't have the permission to assign you. A committer will assign you when the patch is committed.
        Hide
        skrho added a comment -

        Please reivew my patch and give me chance to contribute

        Show
        skrho added a comment - Please reivew my patch and give me chance to contribute
        Hide
        skrho added a comment -

        Please review my patch and give me chance to contribute source

        Show
        skrho added a comment - Please review my patch and give me chance to contribute source
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12662740/hdfs-6832.txt
        against trunk revision .

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7679//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12662740/hdfs-6832.txt against trunk revision . -1 patch . The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7679//console This message is automatically generated.
        Hide
        Suresh Srinivas added a comment -

        Unfortunately, I don't have the permission to assign you. A committer will assign you when the patch is committed.

        Assigned to skrho.

        Show
        Suresh Srinivas added a comment - Unfortunately, I don't have the permission to assign you. A committer will assign you when the patch is committed. Assigned to skrho .
        Hide
        Suresh Srinivas added a comment -

        +1 for the patch. I will commit this shortly.

        Show
        Suresh Srinivas added a comment - +1 for the patch. I will commit this shortly.
        Hide
        Suresh Srinivas added a comment -

        The patch does not apply to trunk. skrho, can you ensure this patch applies to trunk?

        Show
        Suresh Srinivas added a comment - The patch does not apply to trunk. skrho , can you ensure this patch applies to trunk?
        Hide
        skrho added a comment -

        Hello~~ I made trunk patch~~ ( hdfs-6832_001.txt )

        Thank you..

        Show
        skrho added a comment - Hello~~ I made trunk patch~~ ( hdfs-6832_001.txt ) Thank you..
        Hide
        Akira AJISAKA added a comment -

        Thanks skrho for the trunk patch.

              + " ]";
        

        Would you remove the last ']'?

        Show
        Akira AJISAKA added a comment - Thanks skrho for the trunk patch. + " ]" ; Would you remove the last ']'?
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12662933/hdfs-6832_001.txt
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        -1 tests included. The patch doesn't appear to include any new or modified tests.
        Please justify why no new tests are needed for this patch.
        Also please list what manual steps were performed to verify this patch.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. There were no new javadoc warning messages.

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        +1 findbugs. The patch does not introduce any new Findbugs (version 2.0.3) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        -1 core tests. The patch failed these unit tests in hadoop-hdfs-project/hadoop-hdfs:

        org.apache.hadoop.hdfs.server.namenode.TestClusterId
        org.apache.hadoop.hdfs.server.namenode.ha.TestPipelinesFailover

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/7688//testReport/
        Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7688//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12662933/hdfs-6832_001.txt against trunk revision . +1 @author . The patch does not contain any @author tags. -1 tests included . The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . There were no new javadoc warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any new Findbugs (version 2.0.3) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. -1 core tests . The patch failed these unit tests in hadoop-hdfs-project/hadoop-hdfs: org.apache.hadoop.hdfs.server.namenode.TestClusterId org.apache.hadoop.hdfs.server.namenode.ha.TestPipelinesFailover +1 contrib tests . The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/7688//testReport/ Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7688//console This message is automatically generated.
        Hide
        Xiaoyu Yao added a comment -

        Could you remove the extra space before "-force" below?
        [-recover [ -force]

        Show
        Xiaoyu Yao added a comment - Could you remove the extra space before "-force" below? [-recover [ -force]
        Hide
        skrho added a comment -

        Here new patch~ Please review my source ~~

        Show
        skrho added a comment - Here new patch~ Please review my source ~~
        Hide
        skrho added a comment -

        New patch name is hdfs-6832_002.txt

        Show
        skrho added a comment - New patch name is hdfs-6832_002.txt
        Hide
        Xiaoyu Yao added a comment -

        +1

        Show
        Xiaoyu Yao added a comment - +1
        Hide
        Akira AJISAKA added a comment -

        Thanks skrho for the update. A Trivial comment: Would you remove the below line with whitespaces?

        +    
        
        Show
        Akira AJISAKA added a comment - Thanks skrho for the update. A Trivial comment: Would you remove the below line with whitespaces? +
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12665701/hdfs-6832_002.txt
        against trunk revision 258c7d0.

        +1 @author. The patch does not contain any @author tags.

        -1 tests included. The patch doesn't appear to include any new or modified tests.
        Please justify why no new tests are needed for this patch.
        Also please list what manual steps were performed to verify this patch.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. There were no new javadoc warning messages.

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        +1 findbugs. The patch does not introduce any new Findbugs (version 2.0.3) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        -1 core tests. The patch failed these unit tests in hadoop-hdfs-project/hadoop-hdfs:

        org.apache.hadoop.hdfs.server.namenode.TestClusterId
        org.apache.hadoop.hdfs.server.namenode.ha.TestPipelinesFailover

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/7865//testReport/
        Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7865//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12665701/hdfs-6832_002.txt against trunk revision 258c7d0. +1 @author . The patch does not contain any @author tags. -1 tests included . The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . There were no new javadoc warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any new Findbugs (version 2.0.3) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. -1 core tests . The patch failed these unit tests in hadoop-hdfs-project/hadoop-hdfs: org.apache.hadoop.hdfs.server.namenode.TestClusterId org.apache.hadoop.hdfs.server.namenode.ha.TestPipelinesFailover +1 contrib tests . The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/7865//testReport/ Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7865//console This message is automatically generated.
        Hide
        skrho added a comment -

        to~ Suresh Srinivas

        Can you give me chance to contribute source to greate Hadoop? ^^

        Show
        skrho added a comment - to~ Suresh Srinivas Can you give me chance to contribute source to greate Hadoop? ^^
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12665701/hdfs-6832_002.txt
        against trunk revision cc6bbfc.

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/9434//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12665701/hdfs-6832_002.txt against trunk revision cc6bbfc. -1 patch . The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/9434//console This message is automatically generated.
        Hide
        Allen Wittenauer added a comment -

        Cancelling patch since it no longer applies.

        Show
        Allen Wittenauer added a comment - Cancelling patch since it no longer applies.

          People

          • Assignee:
            skrho
            Reporter:
            Akira AJISAKA
          • Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:

              Development