LOG.info("Creating Hive client for Metastore at {}", metastoreHostPort);
ThriftHiveMetastore.Iface client = HiveMetastores.create(
metastoreHostPort.host, metastoreHostPort.port);
HiveInputDescription inputDesc = new HiveInputDescription();
inputDesc.setDbName(args.inputTable.database);
inputDesc.setTableName(args.inputTable.table);
inputDesc.setPartitionFilter(args.inputTable.partitionFilter);
if (args.requestNumSplits == 0) {
args.requestNumSplits = args.multiThread.threads * args.requestSplitsPerThread;
}
inputDesc.setNumSplits(args.requestNumSplits);
inputDesc.getMetastoreDesc().setHost(metastoreHostPort.host);
inputDesc.getMetastoreDesc().setPort(metastoreHostPort.port);
HiveStats hiveStats = HiveUtils.statsOf(client, inputDesc);
LOG.info("{}", hiveStats);
HiveConf hiveConf = HiveUtils.newHiveConf(TailerCmd.class);