HDFS-2314. MRV1 test compilation broken after HDFS-2197. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1169869 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2011-09-12 19:00:10 +00:00
parent dacd3e5b18
commit 0876630020
2 changed files with 11 additions and 0 deletions

View File

@ -1005,6 +1005,9 @@ Release 0.23.0 - Unreleased
HDFS-2289. Ensure jsvc is bundled with the HDFS distribution artifact. HDFS-2289. Ensure jsvc is bundled with the HDFS distribution artifact.
(Alejandro Abdelnur via acmurthy) (Alejandro Abdelnur via acmurthy)
HDFS-2314. MRV1 test compilation broken after HDFS-2197 (todd)
BREAKDOWN OF HDFS-1073 SUBTASKS BREAKDOWN OF HDFS-1073 SUBTASKS
HDFS-1521. Persist transaction ID on disk between NN restarts. HDFS-1521. Persist transaction ID on disk between NN restarts.

View File

@ -46,6 +46,14 @@ public class NameNodeAdapter {
return namenode.getNamesystem().getBlockLocations( return namenode.getNamesystem().getBlockLocations(
src, offset, length, false, true); src, offset, length, false, true);
} }
/**
* Get the internal RPC server instance.
* @return rpc server
*/
public static Server getRpcServer(NameNode namenode) {
return ((NameNodeRpcServer)namenode.getRpcServer()).server;
}
public static DelegationTokenSecretManager getDtSecretManager( public static DelegationTokenSecretManager getDtSecretManager(
final FSNamesystem ns) { final FSNamesystem ns) {