protected static String getResource(HiveConf conf, SessionState.ResourceType resType) {
    switch(resType) {
    case JAR:
      String addedJars = Utilities.getResourceFiles(conf, SessionState.ResourceType.JAR);
      String auxJars = conf.getAuxJars();
      String reloadableAuxJars = SessionState.get() == null ? null : SessionState.get().getReloadableAuxJars();
      return HiveStringUtils.joinIgnoringEmpty(new String[]{addedJars, auxJars, reloadableAuxJars}, ',');
    case FILE:
      return Utilities.getResourceFiles(conf, SessionState.ResourceType.FILE);
    case ARCHIVE:
      return Utilities.getResourceFiles(conf, SessionState.ResourceType.ARCHIVE);
    }

    return null;
  }
Retrieve the resources from the current session and configuration for the given type.
@return Comma-separated list of resources
ql/src/java/org/apache/hadoop/hive/ql/exec/mr/ExecDriver.java