本文整理了Java中org.apache.hadoop.registry.client.impl.zk.ZKPathDumper.toString()
方法的一些代码示例,展示了ZKPathDumper.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKPathDumper.toString()
方法的具体详情如下:
包路径:org.apache.hadoop.registry.client.impl.zk.ZKPathDumper
类名称:ZKPathDumper
方法名:toString
[英]Trigger the recursive registry dump.
[中]触发递归注册表转储。
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-registry
/**
* Diagnostics method to dump a registry robustly.
* Any exception raised is swallowed.
*
* @param verbose verbose path dump
* @return the registry tree
*/
protected String dumpRegistryRobustly(boolean verbose) {
try {
ZKPathDumper pathDumper = dumpPath(verbose);
return pathDumper.toString();
} catch (Exception e) {
// ignore
LOG.debug("Ignoring exception: {}", e);
}
return "";
}
代码示例来源:origin: io.hops/hadoop-yarn-registry
/**
* Diagnostics method to dump a registry robustly.
* Any exception raised is swallowed
* @param verbose verbose path dump
* @return the registry tree
*/
protected String dumpRegistryRobustly(boolean verbose) {
try {
ZKPathDumper pathDumper = dumpPath(verbose);
return pathDumper.toString();
} catch (Exception e) {
// ignore
LOG.debug("Ignoring exception: {}", e);
}
return "";
}
}
代码示例来源:origin: io.hops/hadoop-yarn-registry
/**
* test that ZK can write as itself
* @throws Throwable
*/
@Test
public void testZookeeperCanWriteUnderSystem() throws Throwable {
RMRegistryOperationsService rmRegistryOperations =
startRMRegistryOperations();
RegistryOperations operations = rmRegistryOperations;
operations.mknode(PATH_SYSTEM_SERVICES + "hdfs",
false);
ZKPathDumper pathDumper = rmRegistryOperations.dumpPath(true);
LOG.info(pathDumper.toString());
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-registry
RegistrySecurity.WorldReadWriteACL);
ZKPathDumper pathDumper = curator.dumpPath(true);
LOG.info(pathDumper.toString());
} finally {
logout(login);
代码示例来源:origin: io.hops/hadoop-yarn-registry
RegistrySecurity.WorldReadWriteACL);
ZKPathDumper pathDumper = curator.dumpPath(true);
LOG.info(pathDumper.toString());
} finally {
logout(login);
代码示例来源:origin: io.hops/hadoop-yarn-registry
operations.mknode(base + "/subdir", false);
ZKPathDumper pathDumper = registryAdmin.dumpPath(true);
LOG.info(pathDumper.toString());
代码示例来源:origin: io.hops/hadoop-yarn-registry
LOG.info(pathDumper.toString());
内容来源于网络,如有侵权,请联系作者删除!