public static TempletonStorage getStorageInstance(Configuration conf) {
    TempletonStorage storage = null;
    try {
      storage = (TempletonStorage)
          JavaUtils.loadClass(conf.get(TempletonStorage.STORAGE_CLASS))
          .newInstance();
    } catch (Exception e) {
      LOG.warn("No storage method found: " + e.getMessage());
      try {
        storage = new HDFSStorage();
      } catch (Exception ex) {
        LOG.error("Couldn't create storage.");
      }
    }
    return storage;
  }
Get an instance of the selected storage class.  Defaults to
HDFS storage if none is specified.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobState.java