public static void copyTableJobPropertiesToConf(TableDesc tbl, JobConf job) throws HiveException {
    Properties tblProperties = tbl.getProperties();
    for(String name: tblProperties.stringPropertyNames()) {
      if (job.get(name) == null) {
        String val = (String) tblProperties.get(name);
        if (val != null) {
          job.set(name, StringEscapeUtils.escapeJava(val));
        }
      }
    }
    Map<String, String> jobProperties = tbl.getJobProperties();
    if (jobProperties != null) {
      for (Map.Entry<String, String> entry : jobProperties.entrySet()) {
        job.set(entry.getKey(), entry.getValue());
      }
    }
  }
Copies the storage handler properties configured for a table descriptor to a runtime job
configuration.

@param tbl
         table descriptor from which to read

@param job
         configuration which receives configured properties
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java