Skip to content

[BENCH] TinyDataNode connected to namenode directly #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class NNProxy {
@VisibleForTesting
protected MountsManager mounts;
protected final UpstreamManager upstreamManager;
protected final BlockPoolRegistry blockPoolRegistry;
protected final CacheRegistry cacheRegistry;
protected final BlockPoolRegistry blockPoolRegistry = null;
protected final CacheRegistry cacheRegistry = null;
protected final RpcInvocationProxy router;
protected final ProxyServer server;

Expand All @@ -42,8 +42,8 @@ public NNProxy(Configuration conf) throws Exception {
this.mounts = new MountsManager();

this.upstreamManager = new UpstreamManager(this, conf);
this.blockPoolRegistry = new BlockPoolRegistry(this, conf, upstreamManager);
this.cacheRegistry = new CacheRegistry(this, conf, upstreamManager);
// this.blockPoolRegistry = new BlockPoolRegistry(this, conf, upstreamManager);
// this.cacheRegistry = new CacheRegistry(this, conf, upstreamManager);
this.router = new RpcInvocationProxy(this, conf, upstreamManager);

this.server = new ProxyServer(this, conf, router);
Expand All @@ -58,13 +58,13 @@ public void run() {
shutdown();
}
});
this.cacheRegistry.start();
// this.cacheRegistry.start();
this.server.start();
LOG.info("Started nnproxy... ");
}

public void shutdown() {
this.cacheRegistry.shutdown();
// this.cacheRegistry.shutdown();
LOG.info("Gracefully shutting down nnproxy...");
this.router.shutdown();
this.server.shutdown();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1521,13 +1521,14 @@ public int run(String[] aArgs) throws Exception {
} else {
DistributedFileSystem dfs = (DistributedFileSystem)
FileSystem.get(getConf());
nameNodeProto = DFSTestUtil.getNamenodeProtocolProxy(config, nnUri,
URI nnRealUri = URI.create("hdfs://localhost:9000");
nameNodeProto = DFSTestUtil.getNamenodeProtocolProxy(config, nnRealUri,
UserGroupInformation.getCurrentUser());
clientProto = dfs.getClient().getNamenode();
dataNodeProto = new DatanodeProtocolClientSideTranslatorPB(
DFSUtilClient.getNNAddress(nnUri), config);
DFSUtilClient.getNNAddress(nnRealUri), config);
refreshUserMappingsProto =
DFSTestUtil.getRefreshUserMappingsProtocolProxy(config, nnUri);
DFSTestUtil.getRefreshUserMappingsProtocolProxy(config, nnRealUri);
getBlockPoolId(dfs);
}
// run each benchmark
Expand Down