@Override
  public void serviceInit(Configuration conf) {
    String hosts = HiveConf.getTrimmedVar(conf, ConfVars.LLAP_DAEMON_SERVICE_HOSTS);
    if (hosts.startsWith("@")) {
      registry = new LlapZookeeperRegistryImpl(hosts.substring(1), conf);
      this.isDynamic=true;
    } else {
      registry = new LlapFixedRegistryImpl(hosts, conf);
      this.isDynamic=false;
    }
    LOG.info("Using LLAP registry type " + registry);
  }
Helper method to get a ServiceRegistry instance to read from the registry.
This should not be used by LLAP daemons.

@param conf {@link Configuration} instance which contains service registry information.
@return
llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapRegistryService.java