You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by in...@apache.org on 2018/05/15 22:38:29 UTC
[1/5] hadoop git commit: HDFS-13567.
TestNameNodeMetrics#testGenerateEDEKTime,
TestNameNodeMetrics#testResourceCheck should use a different cluster basedir.
Contributed by Anbang Hu.
Repository: hadoop
Updated Branches:
refs/heads/branch-2 cdb80d6dc -> 3d48a895a
refs/heads/branch-2.9 e3e53871c -> e4355b942
refs/heads/branch-3.0 1b4c39fd2 -> eadfb5519
refs/heads/branch-3.1 34fbc1c2e -> 899a7ec2f
refs/heads/trunk 2d6195c0a -> 63480976a
HDFS-13567. TestNameNodeMetrics#testGenerateEDEKTime,TestNameNodeMetrics#testResourceCheck should use a different cluster basedir. Contributed by Anbang Hu.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/63480976
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/63480976
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/63480976
Branch: refs/heads/trunk
Commit: 63480976a008bab0b84f4da08b1099867e5a9a6b
Parents: 2d6195c
Author: Inigo Goiri <in...@apache.org>
Authored: Tue May 15 15:34:54 2018 -0700
Committer: Inigo Goiri <in...@apache.org>
Committed: Tue May 15 15:34:54 2018 -0700
----------------------------------------------------------------------
.../hdfs/server/namenode/metrics/TestNameNodeMetrics.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/63480976/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
index db9adbe..92bc51c 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
@@ -992,8 +992,10 @@ public class TestNameNodeMetrics {
.DFS_NAMENODE_DELEGATION_TOKEN_ALWAYS_USE_KEY, true);
conf.setInt(DFSConfigKeys.DFS_NAMENODE_LIST_ENCRYPTION_ZONES_NUM_RESPONSES,
2);
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
- try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf)
+ try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(1).build()) {
DistributedFileSystem fsEDEK =
@@ -1029,7 +1031,9 @@ public class TestNameNodeMetrics {
@Test
public void testResourceCheck() throws Exception {
HdfsConfiguration conf = new HdfsConfiguration();
- MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf)
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
+ MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(0)
.nnTopology(MiniDFSNNTopology.simpleHATopology())
.build();
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org
[2/5] hadoop git commit: HDFS-13567.
TestNameNodeMetrics#testGenerateEDEKTime,
TestNameNodeMetrics#testResourceCheck should use a different cluster basedir.
Contributed by Anbang Hu.
Posted by in...@apache.org.
HDFS-13567. TestNameNodeMetrics#testGenerateEDEKTime,TestNameNodeMetrics#testResourceCheck should use a different cluster basedir. Contributed by Anbang Hu.
(cherry picked from commit 63480976a008bab0b84f4da08b1099867e5a9a6b)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/899a7ec2
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/899a7ec2
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/899a7ec2
Branch: refs/heads/branch-3.1
Commit: 899a7ec2fbc8e1ee3579db88041e86f7d8dce1d4
Parents: 34fbc1c
Author: Inigo Goiri <in...@apache.org>
Authored: Tue May 15 15:34:54 2018 -0700
Committer: Inigo Goiri <in...@apache.org>
Committed: Tue May 15 15:36:03 2018 -0700
----------------------------------------------------------------------
.../hdfs/server/namenode/metrics/TestNameNodeMetrics.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/899a7ec2/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
index db9adbe..92bc51c 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
@@ -992,8 +992,10 @@ public class TestNameNodeMetrics {
.DFS_NAMENODE_DELEGATION_TOKEN_ALWAYS_USE_KEY, true);
conf.setInt(DFSConfigKeys.DFS_NAMENODE_LIST_ENCRYPTION_ZONES_NUM_RESPONSES,
2);
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
- try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf)
+ try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(1).build()) {
DistributedFileSystem fsEDEK =
@@ -1029,7 +1031,9 @@ public class TestNameNodeMetrics {
@Test
public void testResourceCheck() throws Exception {
HdfsConfiguration conf = new HdfsConfiguration();
- MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf)
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
+ MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(0)
.nnTopology(MiniDFSNNTopology.simpleHATopology())
.build();
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org
[5/5] hadoop git commit: HDFS-13567.
TestNameNodeMetrics#testGenerateEDEKTime,
TestNameNodeMetrics#testResourceCheck should use a different cluster basedir.
Contributed by Anbang Hu.
Posted by in...@apache.org.
HDFS-13567. TestNameNodeMetrics#testGenerateEDEKTime,TestNameNodeMetrics#testResourceCheck should use a different cluster basedir. Contributed by Anbang Hu.
(cherry picked from commit 63480976a008bab0b84f4da08b1099867e5a9a6b)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e4355b94
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e4355b94
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e4355b94
Branch: refs/heads/branch-2.9
Commit: e4355b942e576914cef77a3cbdb81de2e56a009a
Parents: e3e5387
Author: Inigo Goiri <in...@apache.org>
Authored: Tue May 15 15:34:54 2018 -0700
Committer: Inigo Goiri <in...@apache.org>
Committed: Tue May 15 15:38:07 2018 -0700
----------------------------------------------------------------------
.../hdfs/server/namenode/metrics/TestNameNodeMetrics.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/e4355b94/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
index c257fd8..9dc8c08 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
@@ -770,8 +770,10 @@ public class TestNameNodeMetrics {
.DFS_NAMENODE_DELEGATION_TOKEN_ALWAYS_USE_KEY, true);
conf.setInt(DFSConfigKeys.DFS_NAMENODE_LIST_ENCRYPTION_ZONES_NUM_RESPONSES,
2);
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
- try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf)
+ try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(1).build()) {
DistributedFileSystem fsEDEK =
@@ -807,7 +809,9 @@ public class TestNameNodeMetrics {
@Test
public void testResourceCheck() throws Exception {
HdfsConfiguration conf = new HdfsConfiguration();
- MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf)
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
+ MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(0)
.nnTopology(MiniDFSNNTopology.simpleHATopology())
.build();
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org
[3/5] hadoop git commit: HDFS-13567.
TestNameNodeMetrics#testGenerateEDEKTime,
TestNameNodeMetrics#testResourceCheck should use a different cluster basedir.
Contributed by Anbang Hu.
Posted by in...@apache.org.
HDFS-13567. TestNameNodeMetrics#testGenerateEDEKTime,TestNameNodeMetrics#testResourceCheck should use a different cluster basedir. Contributed by Anbang Hu.
(cherry picked from commit 63480976a008bab0b84f4da08b1099867e5a9a6b)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/eadfb551
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/eadfb551
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/eadfb551
Branch: refs/heads/branch-3.0
Commit: eadfb55195bd86478c9c393afec3b2d8c888bc42
Parents: 1b4c39f
Author: Inigo Goiri <in...@apache.org>
Authored: Tue May 15 15:34:54 2018 -0700
Committer: Inigo Goiri <in...@apache.org>
Committed: Tue May 15 15:36:30 2018 -0700
----------------------------------------------------------------------
.../hdfs/server/namenode/metrics/TestNameNodeMetrics.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/eadfb551/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
index db9adbe..92bc51c 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
@@ -992,8 +992,10 @@ public class TestNameNodeMetrics {
.DFS_NAMENODE_DELEGATION_TOKEN_ALWAYS_USE_KEY, true);
conf.setInt(DFSConfigKeys.DFS_NAMENODE_LIST_ENCRYPTION_ZONES_NUM_RESPONSES,
2);
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
- try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf)
+ try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(1).build()) {
DistributedFileSystem fsEDEK =
@@ -1029,7 +1031,9 @@ public class TestNameNodeMetrics {
@Test
public void testResourceCheck() throws Exception {
HdfsConfiguration conf = new HdfsConfiguration();
- MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf)
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
+ MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(0)
.nnTopology(MiniDFSNNTopology.simpleHATopology())
.build();
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org
[4/5] hadoop git commit: HDFS-13567.
TestNameNodeMetrics#testGenerateEDEKTime,
TestNameNodeMetrics#testResourceCheck should use a different cluster basedir.
Contributed by Anbang Hu.
Posted by in...@apache.org.
HDFS-13567. TestNameNodeMetrics#testGenerateEDEKTime,TestNameNodeMetrics#testResourceCheck should use a different cluster basedir. Contributed by Anbang Hu.
(cherry picked from commit 63480976a008bab0b84f4da08b1099867e5a9a6b)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/3d48a895
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/3d48a895
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/3d48a895
Branch: refs/heads/branch-2
Commit: 3d48a895a6260ca048c72422d48407b0a3b7817f
Parents: cdb80d6
Author: Inigo Goiri <in...@apache.org>
Authored: Tue May 15 15:34:54 2018 -0700
Committer: Inigo Goiri <in...@apache.org>
Committed: Tue May 15 15:36:58 2018 -0700
----------------------------------------------------------------------
.../hdfs/server/namenode/metrics/TestNameNodeMetrics.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/3d48a895/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
index c257fd8..9dc8c08 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
@@ -770,8 +770,10 @@ public class TestNameNodeMetrics {
.DFS_NAMENODE_DELEGATION_TOKEN_ALWAYS_USE_KEY, true);
conf.setInt(DFSConfigKeys.DFS_NAMENODE_LIST_ENCRYPTION_ZONES_NUM_RESPONSES,
2);
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
- try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf)
+ try (MiniDFSCluster clusterEDEK = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(1).build()) {
DistributedFileSystem fsEDEK =
@@ -807,7 +809,9 @@ public class TestNameNodeMetrics {
@Test
public void testResourceCheck() throws Exception {
HdfsConfiguration conf = new HdfsConfiguration();
- MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf)
+ File basedir = new File(MiniDFSCluster.getBaseDirectory(),
+ GenericTestUtils.getMethodName());
+ MiniDFSCluster tmpCluster = new MiniDFSCluster.Builder(conf, basedir)
.numDataNodes(0)
.nnTopology(MiniDFSNNTopology.simpleHATopology())
.build();
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org