@Override
  public URI getURIForAuth(Table table) throws URISyntaxException{
    Map<String, String> tableProperties = HiveCustomStorageHandlerUtils.getTableProperties(table);
    String host_name = conf.get(DRUID_HOST_NAME) != null ? conf.get(DRUID_HOST_NAME) :
            HiveConf.getVar(getConf(), HiveConf.ConfVars.HIVE_DRUID_BROKER_DEFAULT_ADDRESS);
    String table_name = tableProperties.get(Constants.DRUID_DATA_SOURCE);
    String column_names = tableProperties.get(Constants.DRUID_QUERY_FIELD_NAMES);
    if (column_names != null)
      return new URI(DRUID_PREFIX+"//"+host_name+"/"+table_name+"/"+column_names);
    else
      return new URI(DRUID_PREFIX+"//"+host_name+"/"+table_name);
  }
Druid config for determining the host name
druid-handler/src/java/org/apache/hadoop/hive/druid/DruidStorageHandler.java