public static String getLocalDirList(Configuration conf) {
    if (HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_EXECUTION_ENGINE).equals("tez")) {
      TezContext tezContext = (TezContext) TezContext.get();
      if (tezContext != null && tezContext.getTezProcessorContext() != null) {
        return StringUtils.arrayToString(tezContext.getTezProcessorContext().getWorkDirs());
      } // otherwise fall back to return null, i.e. to use local tmp dir only
    }

    return null;
  }
Return HiveAuthorizerFactory used by new authorization plugin interface.
@param conf
@param authorizationProviderConfKey
@return
@throws HiveException if HiveAuthorizerFactory specified in configuration could not
ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveUtils.java