com.ucar.datalink.domain.media.parameter.zk.ZkMediaSrcParameter.parseServersToString()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(94)

本文整理了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

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();

相关文章