[2/2] hadoop git commit: HDFS-8237. Move all protocol classes used by ClientProtocol to hdfs-client. Contributed by Haohui Mai.

2015-05-04 Thread wheat9
HDFS-8237. Move all protocol classes used by ClientProtocol to hdfs-client. 
Contributed by Haohui Mai.


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

Branch: refs/heads/branch-2
Commit: db0bd6dca837eca60e866f00711576a502087f64
Parents: 81f128f
Author: Haohui Mai whe...@apache.org
Authored: Mon May 4 15:00:29 2015 -0700
Committer: Haohui Mai whe...@apache.org
Committed: Mon May 4 15:02:49 2015 -0700

--
 .../dev-support/findbugsExcludeFile.xml |   3 +
 .../org/apache/hadoop/hdfs/DFSUtilClient.java   |  85 +
 .../hdfs/client/HdfsClientConfigKeys.java   |   1 +
 .../hdfs/protocol/CacheDirectiveEntry.java  |  45 +++
 .../hdfs/protocol/CacheDirectiveInfo.java   | 358 +++
 .../hdfs/protocol/CacheDirectiveStats.java  | 169 +
 .../hadoop/hdfs/protocol/CachePoolEntry.java|  45 +++
 .../hadoop/hdfs/protocol/CachePoolInfo.java | 229 
 .../hadoop/hdfs/protocol/CachePoolStats.java| 115 ++
 .../hdfs/protocol/SnapshotDiffReport.java   | 215 +++
 .../protocol/SnapshottableDirectoryStatus.java  | 218 +++
 .../delegation/DelegationTokenSelector.java |  74 
 .../namenode/NotReplicatedYetException.java |  37 ++
 .../hdfs/server/protocol/DatanodeStorage.java   | 126 +++
 .../server/protocol/DatanodeStorageReport.java  |  42 +++
 .../hdfs/server/protocol/StorageReport.java |  66 
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt |   3 +
 .../java/org/apache/hadoop/hdfs/DFSUtil.java|  75 +---
 .../hdfs/protocol/CacheDirectiveEntry.java  |  45 ---
 .../hdfs/protocol/CacheDirectiveInfo.java   | 358 ---
 .../hdfs/protocol/CacheDirectiveStats.java  | 169 -
 .../hadoop/hdfs/protocol/CachePoolEntry.java|  45 ---
 .../hadoop/hdfs/protocol/CachePoolInfo.java | 229 
 .../hadoop/hdfs/protocol/CachePoolStats.java| 115 --
 .../hdfs/protocol/SnapshotDiffReport.java   | 215 ---
 .../protocol/SnapshottableDirectoryStatus.java  | 218 ---
 .../apache/hadoop/hdfs/protocolPB/PBHelper.java |  10 +-
 .../delegation/DelegationTokenSelector.java |  74 
 .../hadoop/hdfs/server/namenode/INode.java  |   3 +-
 .../namenode/NotReplicatedYetException.java |  37 --
 .../namenode/snapshot/SnapshotManager.java  |   3 +-
 .../hdfs/server/protocol/DatanodeStorage.java   | 126 ---
 .../server/protocol/DatanodeStorageReport.java  |  42 ---
 .../hdfs/server/protocol/StorageReport.java |  66 
 34 files changed, 1842 insertions(+), 1819 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/db0bd6dc/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml
--
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml 
b/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml
index 7aade70..be2911f 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml
@@ -11,6 +11,9 @@
   Class name=org.apache.hadoop.hdfs.protocol.DirectoryListing/
   Class 
name=org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier/
   Class 
name=org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey/
+  Class 
name=org.apache.hadoop.hdfs.protocol.SnapshotDiffReport$DiffReportEntry/
+  Class 
name=org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus/
+  Class 
name=org.apache.hadoop.hdfs.server.protocol.DatanodeStorageReport/
 /Or
 Bug pattern=EI_EXPOSE_REP,EI_EXPOSE_REP2 /
   /Match

http://git-wip-us.apache.org/repos/asf/hadoop/blob/db0bd6dc/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
--
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
 
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
index 97d3408..eda135e 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
@@ -19,6 +19,7 @@ package org.apache.hadoop.hdfs;
 
 import com.google.common.base.Joiner;
 import com.google.common.collect.Maps;
+import com.google.common.primitives.SignedBytes;
 import org.apache.commons.io.Charsets;
 import 

[2/2] hadoop git commit: HDFS-8237. Move all protocol classes used by ClientProtocol to hdfs-client. Contributed by Haohui Mai.

2015-05-04 Thread wheat9
HDFS-8237. Move all protocol classes used by ClientProtocol to hdfs-client. 
Contributed by Haohui Mai.


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

Branch: refs/heads/trunk
Commit: 0d6aa5d60948a7966da0ca1c3344a37c1d32f2e9
Parents: bf70c5a
Author: Haohui Mai whe...@apache.org
Authored: Mon May 4 15:00:29 2015 -0700
Committer: Haohui Mai whe...@apache.org
Committed: Mon May 4 15:00:29 2015 -0700

--
 .../dev-support/findbugsExcludeFile.xml |   3 +
 .../org/apache/hadoop/hdfs/DFSUtilClient.java   |  85 +
 .../hdfs/client/HdfsClientConfigKeys.java   |   1 +
 .../hdfs/protocol/CacheDirectiveEntry.java  |  45 +++
 .../hdfs/protocol/CacheDirectiveInfo.java   | 358 +++
 .../hdfs/protocol/CacheDirectiveStats.java  | 169 +
 .../hadoop/hdfs/protocol/CachePoolEntry.java|  45 +++
 .../hadoop/hdfs/protocol/CachePoolInfo.java | 229 
 .../hadoop/hdfs/protocol/CachePoolStats.java| 115 ++
 .../hdfs/protocol/SnapshotDiffReport.java   | 215 +++
 .../protocol/SnapshottableDirectoryStatus.java  | 218 +++
 .../delegation/DelegationTokenSelector.java |  74 
 .../namenode/NotReplicatedYetException.java |  37 ++
 .../hdfs/server/protocol/DatanodeStorage.java   | 126 +++
 .../server/protocol/DatanodeStorageReport.java  |  42 +++
 .../hdfs/server/protocol/StorageReport.java |  66 
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt |   3 +
 .../java/org/apache/hadoop/hdfs/DFSUtil.java|  75 +---
 .../hdfs/protocol/CacheDirectiveEntry.java  |  45 ---
 .../hdfs/protocol/CacheDirectiveInfo.java   | 358 ---
 .../hdfs/protocol/CacheDirectiveStats.java  | 169 -
 .../hadoop/hdfs/protocol/CachePoolEntry.java|  45 ---
 .../hadoop/hdfs/protocol/CachePoolInfo.java | 229 
 .../hadoop/hdfs/protocol/CachePoolStats.java| 115 --
 .../hdfs/protocol/SnapshotDiffReport.java   | 215 ---
 .../protocol/SnapshottableDirectoryStatus.java  | 218 ---
 .../apache/hadoop/hdfs/protocolPB/PBHelper.java |  10 +-
 .../delegation/DelegationTokenSelector.java |  74 
 .../hadoop/hdfs/server/namenode/INode.java  |   3 +-
 .../namenode/NotReplicatedYetException.java |  37 --
 .../namenode/snapshot/SnapshotManager.java  |   3 +-
 .../hdfs/server/protocol/DatanodeStorage.java   | 126 ---
 .../server/protocol/DatanodeStorageReport.java  |  42 ---
 .../hdfs/server/protocol/StorageReport.java |  66 
 34 files changed, 1842 insertions(+), 1819 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/0d6aa5d6/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml
--
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml 
b/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml
index 7aade70..be2911f 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml
@@ -11,6 +11,9 @@
   Class name=org.apache.hadoop.hdfs.protocol.DirectoryListing/
   Class 
name=org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier/
   Class 
name=org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey/
+  Class 
name=org.apache.hadoop.hdfs.protocol.SnapshotDiffReport$DiffReportEntry/
+  Class 
name=org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus/
+  Class 
name=org.apache.hadoop.hdfs.server.protocol.DatanodeStorageReport/
 /Or
 Bug pattern=EI_EXPOSE_REP,EI_EXPOSE_REP2 /
   /Match

http://git-wip-us.apache.org/repos/asf/hadoop/blob/0d6aa5d6/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
--
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
 
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
index 97d3408..eda135e 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
@@ -19,6 +19,7 @@ package org.apache.hadoop.hdfs;
 
 import com.google.common.base.Joiner;
 import com.google.common.collect.Maps;
+import com.google.common.primitives.SignedBytes;
 import org.apache.commons.io.Charsets;
 import