@Override
public List<InputSplit> getSplits(JobContext jobContext)
throws IOException, InterruptedException {
Configuration conf = jobContext.getConfiguration();
InputConf inputConf = new InputConf(conf, myProfileId);
LOG.info("getSplits for profile " + inputConf.getProfileId());
JobConf jobConf = new JobConf(conf);
InputInfo inputInfo = inputConf.readInputInfoFromConf();
int partitionNum = 0;
List<InputSplit> splits = Lists.newArrayList();
Iterable<InputPartition> partitions = inputInfo.getPartitions();
for (InputPartition inputPartition : partitions) {
org.apache.hadoop.mapred.InputFormat baseInputFormat =
inputPartition.makeInputFormat(conf);
HadoopUtils.setInputDir(jobConf, inputPartition.getLocation());
int splitsRequested = inputConf.readNumSplitsFromConf();
org.apache.hadoop.mapred.InputSplit[] baseSplits =
baseInputFormat.getSplits(jobConf, splitsRequested);
LOG.info("Requested " + splitsRequested + " from partition (" +
partitionNum + " out of " + Iterables.size(partitions) +
") values: " +