protected static void configureOutputStorageHandler(
    JobContext context, OutputJobInfo jobInfo,
    Map<String, String> fullPartSpec) throws IOException {
    List<String> dynamicPartKeys = jobInfo.getDynamicPartitioningKeys();
    if ((dynamicPartKeys == null) || (dynamicPartKeys.isEmpty())) {
      configureOutputStorageHandler(context, (List<String>) null);
    } else {
      List<String> dynKeyVals = new ArrayList<String>();
      for (String dynamicPartKey : dynamicPartKeys) {
        dynKeyVals.add(fullPartSpec.get(dynamicPartKey));
      }
      configureOutputStorageHandler(context, dynKeyVals);
    }
  }
Configure the output storage handler, with allowing specification
of partvals from which it picks the dynamic partvals
@param context the job context
@param jobInfo the output job info
@param fullPartSpec
@throws IOException
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/HCatBaseOutputFormat.java