hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ji...@apache.org
Subject hadoop git commit: HDFS-8639. Add Option for NameNode HTTP port in MiniDFSClusterManager. Contributed by Kai Sasaki.
Date Wed, 24 Jun 2015 05:16:26 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 49dfad942 -> 2ba646572


HDFS-8639. Add Option for NameNode HTTP port in MiniDFSClusterManager. Contributed by Kai
Sasaki.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2ba64657
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2ba64657
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2ba64657

Branch: refs/heads/trunk
Commit: 2ba646572185b91d6db1b09837abdcbadbfbeb49
Parents: 49dfad9
Author: Jing Zhao <jing9@apache.org>
Authored: Tue Jun 23 22:16:16 2015 -0700
Committer: Jing Zhao <jing9@apache.org>
Committed: Tue Jun 23 22:16:16 2015 -0700

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                      | 3 +++
 .../test/java/org/apache/hadoop/test/MiniDFSClusterManager.java  | 4 ++++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/2ba64657/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 09a6891..d94a213 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -663,6 +663,9 @@ Release 2.8.0 - UNRELEASED
     HDFS-6564. Use slf4j instead of common-logging in hdfs-client.
     (Rakesh R via wheat9)
 
+    HDFS-8639. Add Option for NameNode HTTP port in MiniDFSClusterManager.
+    (Kai Sasaki via jing9)
+
   OPTIMIZATIONS
 
     HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than

http://git-wip-us.apache.org/repos/asf/hadoop/blob/2ba64657/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/MiniDFSClusterManager.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/MiniDFSClusterManager.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/MiniDFSClusterManager.java
index 7029f42..f8e931a 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/MiniDFSClusterManager.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/test/MiniDFSClusterManager.java
@@ -65,6 +65,7 @@ public class MiniDFSClusterManager {
   private String writeDetails;
   private int numDataNodes;
   private int nameNodePort;
+  private int nameNodeHttpPort;
   private StartupOption dfsOpts;
   private String writeConfig;
   private Configuration conf;
@@ -84,6 +85,7 @@ public class MiniDFSClusterManager {
         .addOption("cmdport", true,
             "Which port to listen on for commands (default 0--we choose)")
         .addOption("nnport", true, "NameNode port (default 0--we choose)")
+        .addOption("httpport", true, "NameNode http port (default 0--we choose)")
         .addOption("namenode", true, "URL of the namenode (default "
             + "is either the DFS cluster or a temporary dir)")     
         .addOption(OptionBuilder
@@ -137,6 +139,7 @@ public class MiniDFSClusterManager {
    */
   public void start() throws IOException, FileNotFoundException {
     dfs = new MiniDFSCluster.Builder(conf).nameNodePort(nameNodePort)
+                                          .nameNodeHttpPort(nameNodeHttpPort)
                                           .numDataNodes(numDataNodes)
                                           .startupOption(dfsOpts)
                                           .format(format)
@@ -198,6 +201,7 @@ public class MiniDFSClusterManager {
     // HDFS
     numDataNodes = intArgument(cli, "datanodes", 1);
     nameNodePort = intArgument(cli, "nnport", 0);
+    nameNodeHttpPort = intArgument(cli, "httpport", 0);
     if (cli.hasOption("format")) {
       dfsOpts = StartupOption.FORMAT;
       format = true;


Mime
View raw message