private String getTempTableStorageFormatString(HiveConf conf) {
    String formatString = "";
    String storageFormatOption =
        conf.getVar(HiveConf.ConfVars.LLAP_EXTERNAL_SPLITS_TEMP_TABLE_STORAGE_FORMAT).toLowerCase();
    if (storageFormatOption.equals("text")) {
      formatString = "stored as textfile";
    } else if (storageFormatOption.equals("orc")) {
      formatString = "stored as orc";
    }
    return formatString;
  }
Returns a local resource representing a jar. This resource will be used to
execute the plan on the cluster.

@param localJarPath
         Local path to the jar to be localized.
@return LocalResource corresponding to the localized hive exec resource.
@throws IOException
          when any file system related call fails.
@throws LoginException
          when we are unable to determine the user.
@throws URISyntaxException
          when current jar location cannot be determined.
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFGetSplits.java