本文整理了Java中com.ucar.datalink.domain.media.parameter.zk.ZkMediaSrcParameter.parseServersToString()
方法的一些代码示例,展示了ZkMediaSrcParameter.parseServersToString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZkMediaSrcParameter.parseServersToString()
方法的具体详情如下:
包路径:com.ucar.datalink.domain.media.parameter.zk.ZkMediaSrcParameter
类名称:ZkMediaSrcParameter
方法名:parseServersToString
暂无
代码示例来源:origin: ucarGroup/DataLink
@Override
public Configuration load(MediaSourceInfo mediaSourceInfo) throws Exception {
HBaseMediaSrcParameter hbaseParameter = mediaSourceInfo.getParameterObj();
MediaSourceInfo zkMediaSource = DataLinkFactory.getObject(MediaService.class).getMediaSourceById(hbaseParameter.getZkMediaSourceId());
ZkMediaSrcParameter zkParameter = zkMediaSource.getParameterObj();
String address = zkParameter.parseServersToString();
String prot = zkParameter.parsePort() + "";
String znode = hbaseParameter.getZnodeParent();
Configuration conf = HBaseConfiguration.create();
conf.set("hbase.zookeeper.quorum", address);
conf.set("hbase.zookeeper.property.clientPort", prot);
conf.set("zookeeper.znode.parent", znode);
return conf;
}
});
代码示例来源:origin: ucarGroup/DataLink
conf.set("hbase.zookeeper.quorum", zkParameter.parseServersToString());
conf.set("hbase.zookeeper.property.clientPort", zkParameter.parsePort() + "");
conf.set("zookeeper.znode.parent", hbaseParameter.getZnodeParent());
代码示例来源:origin: ucarGroup/DataLink
ZkMediaSrcParameter zkParameter = event.getZkParameter();
String znode = hbaseParameter.getZnodeParent();
String address = zkParameter.parseServersToString();
String port = zkParameter.parsePort()+"";
org.apache.hadoop.conf.Configuration conf = HBaseConfiguration.create();
代码示例来源:origin: ucarGroup/DataLink
String address = zkParameter.parseServersToString();
String znode = hbaseParameter.getZnodeParent();
org.apache.hadoop.conf.Configuration conf = HBaseConfiguration.create();
代码示例来源:origin: ucarGroup/DataLink
String tableName = event.getTableName();
ZkMediaSrcParameter zkParameter = event.getZkParameter();
String hosts = zkParameter.parseServersToString();
String port = zkParameter.parsePort()+"";
String znode = hbaseParameter.getZnodeParent();
代码示例来源:origin: ucarGroup/DataLink
Set<String> qualifiers = getHbaseQualifier(tableName, zkParameter.parseServersToString(), zkParameter.parsePort() + "", hbaseParameter.getZnodeParent(), cf);
if(logger.isDebugEnabled()) {
logger.debug("getHbaseQualifier success "+qualifiers.toString());
代码示例来源:origin: ucarGroup/DataLink
String tableName = event.getTableName();
ZkMediaSrcParameter zkParameter = event.getZkParameter();
String hosts = zkParameter.parseServersToString();
String port = zkParameter.parsePort()+"";
String znode = hbaseParameter.getZnodeParent();
内容来源于网络,如有侵权,请联系作者删除!