HadoopNative.requireHadoopNative();
Timer allTime = Metrics.newTimer(InputBenchmark.class, "all-time", MILLISECONDS, MILLISECONDS);
TimerContext allTimerContext = allTime.time();
HiveInputDescription input = new HiveInputDescription();
input.getTableDesc().setDatabaseName(args.tableOpts.database);
input.getTableDesc().setTableName(args.tableOpts.table);
input.setPartitionFilter(args.tableOpts.partitionFilter);
input.getMetastoreDesc().setHost(args.metastoreOpts.host);
input.getMetastoreDesc().setPort(args.metastoreOpts.port);
HiveConf hiveConf = HiveUtils.newHiveConf(InputBenchmark.class);
System.err.println("Initialize profile with input data");
HiveApiInputFormat.setProfileInputDesc(hiveConf, input, DEFAULT_PROFILE_ID);