Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14108

CLI MiniCluster: add an option to specify NameNode HTTP port

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: None
    • Labels:
      None

      Description

      About CLI MiniCluster, NameNode HTTP port is randomly determined. If you want to see nn-web-ui or do fsck, you need to look for the port number from the minicluster's log. It would be useful if users can specify the port number.

      1. HADOOP-14108.1.patch
        3 kB
        Takanobu Asanuma

        Activity

        Hide
        tasanuma0829 Takanobu Asanuma added a comment -

        Thanks for committing, Akira Ajisaka!

        Show
        tasanuma0829 Takanobu Asanuma added a comment - Thanks for committing, Akira Ajisaka !
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11353 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11353/)
        HADOOP-14108. CLI MiniCluster: add an option to specify NameNode HTTP (aajisaka: rev 209ecd1a5c056e096a5d804759f88302608d503b)

        • (edit) hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/MiniHadoopClusterManager.java
        • (edit) hadoop-common-project/hadoop-common/src/site/markdown/CLIMiniCluster.md.vm
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11353 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11353/ ) HADOOP-14108 . CLI MiniCluster: add an option to specify NameNode HTTP (aajisaka: rev 209ecd1a5c056e096a5d804759f88302608d503b) (edit) hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/MiniHadoopClusterManager.java (edit) hadoop-common-project/hadoop-common/src/site/markdown/CLIMiniCluster.md.vm
        Hide
        ajisakaa Akira Ajisaka added a comment -

        Committed this to trunk and branch-2. Thanks Takanobu Asanuma for the contribution!

        Show
        ajisakaa Akira Ajisaka added a comment - Committed this to trunk and branch-2. Thanks Takanobu Asanuma for the contribution!
        Hide
        ajisakaa Akira Ajisaka added a comment -

        +1, verified the option can specify the NN HTTP port.

        Show
        ajisakaa Akira Ajisaka added a comment - +1, verified the option can specify the NN HTTP port.
        Hide
        hadoopqa Hadoop QA added a comment -
        +1 overall



        Vote Subsystem Runtime Comment
        0 reexec 0m 14s Docker mode activated.
        +1 @author 0m 0s The patch does not contain any @author tags.
        +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
        0 mvndep 1m 37s Maven dependency ordering for branch
        +1 mvninstall 13m 29s trunk passed
        +1 compile 13m 27s trunk passed
        +1 checkstyle 1m 52s trunk passed
        +1 mvnsite 1m 33s trunk passed
        +1 mvneclipse 0m 40s trunk passed
        +1 findbugs 1m 58s trunk passed
        +1 javadoc 1m 9s trunk passed
        0 mvndep 0m 16s Maven dependency ordering for patch
        +1 mvninstall 1m 3s the patch passed
        +1 compile 11m 5s the patch passed
        +1 javac 11m 5s the patch passed
        +1 checkstyle 1m 56s the patch passed
        +1 mvnsite 1m 35s the patch passed
        +1 mvneclipse 0m 46s the patch passed
        +1 whitespace 0m 0s The patch has no whitespace issues.
        +1 findbugs 2m 19s the patch passed
        +1 javadoc 1m 17s the patch passed
        +1 unit 8m 19s hadoop-common in the patch passed.
        +1 unit 100m 49s hadoop-mapreduce-client-jobclient in the patch passed.
        +1 asflicense 0m 47s The patch does not generate ASF License warnings.
        190m 50s



        Subsystem Report/Notes
        Docker Image:yetus/hadoop:a9ad5d6
        JIRA Issue HADOOP-14108
        JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12854174/HADOOP-14108.1.patch
        Optional Tests asflicense mvnsite compile javac javadoc mvninstall unit findbugs checkstyle
        uname Linux 986a9619c38e 3.13.0-103-generic #150-Ubuntu SMP Thu Nov 24 10:34:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
        Build tool maven
        Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
        git revision trunk / a207aa9
        Default Java 1.8.0_121
        findbugs v3.0.0
        Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/11695/testReport/
        modules C: hadoop-common-project/hadoop-common hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient U: .
        Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/11695/console
        Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - +1 overall Vote Subsystem Runtime Comment 0 reexec 0m 14s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. 0 mvndep 1m 37s Maven dependency ordering for branch +1 mvninstall 13m 29s trunk passed +1 compile 13m 27s trunk passed +1 checkstyle 1m 52s trunk passed +1 mvnsite 1m 33s trunk passed +1 mvneclipse 0m 40s trunk passed +1 findbugs 1m 58s trunk passed +1 javadoc 1m 9s trunk passed 0 mvndep 0m 16s Maven dependency ordering for patch +1 mvninstall 1m 3s the patch passed +1 compile 11m 5s the patch passed +1 javac 11m 5s the patch passed +1 checkstyle 1m 56s the patch passed +1 mvnsite 1m 35s the patch passed +1 mvneclipse 0m 46s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 findbugs 2m 19s the patch passed +1 javadoc 1m 17s the patch passed +1 unit 8m 19s hadoop-common in the patch passed. +1 unit 100m 49s hadoop-mapreduce-client-jobclient in the patch passed. +1 asflicense 0m 47s The patch does not generate ASF License warnings. 190m 50s Subsystem Report/Notes Docker Image:yetus/hadoop:a9ad5d6 JIRA Issue HADOOP-14108 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12854174/HADOOP-14108.1.patch Optional Tests asflicense mvnsite compile javac javadoc mvninstall unit findbugs checkstyle uname Linux 986a9619c38e 3.13.0-103-generic #150-Ubuntu SMP Thu Nov 24 10:34:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / a207aa9 Default Java 1.8.0_121 findbugs v3.0.0 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/11695/testReport/ modules C: hadoop-common-project/hadoop-common hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient U: . Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/11695/console Powered by Apache Yetus 0.5.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
        Hide
        tasanuma0829 Takanobu Asanuma added a comment -

        Uploaded the first patch.

        Show
        tasanuma0829 Takanobu Asanuma added a comment - Uploaded the first patch.
        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        oh,it's for CLI miniCluster.I just confused.

        Show
        brahmareddy Brahma Reddy Battula added a comment - oh,it's for CLI miniCluster.I just confused.
        Hide
        tasanuma0829 Takanobu Asanuma added a comment -

        Hi Brahma Reddy Battula,
        We can start minicluster from a command line. This is the doc. In this way, we can't specify the port at the moment.
        https://hadoop.apache.org/docs/r3.0.0-alpha2/hadoop-project-dist/hadoop-common/CLIMiniCluster.html

        Show
        tasanuma0829 Takanobu Asanuma added a comment - Hi Brahma Reddy Battula , We can start minicluster from a command line. This is the doc. In this way, we can't specify the port at the moment. https://hadoop.apache.org/docs/r3.0.0-alpha2/hadoop-project-dist/hadoop-common/CLIMiniCluster.html
        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        are you talking following..? It's already provided right..?

           MiniDFSCluster cluster =
                new MiniDFSCluster.Builder(conf).nameNodeHttpPort(50070).build();
         
        Show
        brahmareddy Brahma Reddy Battula added a comment - are you talking following..? It's already provided right..? MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).nameNodeHttpPort(50070).build();

          People

          • Assignee:
            tasanuma0829 Takanobu Asanuma
            Reporter:
            tasanuma0829 Takanobu Asanuma
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development