Index: ql/src/java/org/apache/hadoop/hive/ql/exec/mr/MapredLocalTask.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/exec/mr/MapredLocalTask.java (revision c38ba57175b3c237dcea2420c3d1ef86a9adfe8b) +++ ql/src/java/org/apache/hadoop/hive/ql/exec/mr/MapredLocalTask.java (date 1600415234530) @@ -185,8 +185,12 @@ jarCmd = hiveJar + " " + ExecDriver.class.getName(); String hiveConfArgs = ExecDriver.generateCmdLine(conf, ctx); + String addlibJar=""; + if(StringUtils.isNotEmpty(conf.getVar(ConfVars.HIVEADDEDJARS))){ + addlibJar = "-libjars " +conf.getVar(ConfVars.HIVEADDEDJARS); + } String cmdLine = hadoopExec + " jar " + jarCmd + " -localtask -plan " + planPath.toString() - + " " + isSilent + " " + hiveConfArgs; + + " " + isSilent + " " + hiveConfArgs +" "+addlibJar; String workDir = (new File(".")).getCanonicalPath(); String files = Utilities.getResourceFiles(conf, SessionState.ResourceType.FILE);