Index: core/sql/lib_mgmt/src/main/java/org/trafodion/libmgmt/FileMgmt.java =================================================================== diff -u -N -r83b6c285d0a40e8645c7422e7250e8fa2b7da86d -ra028041e640025189be4f6ba2a1cf1d19f43086f --- core/sql/lib_mgmt/src/main/java/org/trafodion/libmgmt/FileMgmt.java (.../FileMgmt.java) (revision 83b6c285d0a40e8645c7422e7250e8fa2b7da86d) +++ core/sql/lib_mgmt/src/main/java/org/trafodion/libmgmt/FileMgmt.java (.../FileMgmt.java) (revision a028041e640025189be4f6ba2a1cf1d19f43086f) @@ -237,17 +237,20 @@ public static void syncJar(String userPath, String fileName) throws SQLException, IOException { checkFileName(fileName); - LOG.info("syncJars " + fileName); String nodes = System.getenv("MY_NODES"); + LOG.info("syncJars " + fileName + ", MY_NODES=" + nodes); if (nodes != null && !"".equals(nodes.trim())) { String pdcp = System.getenv("SQ_PDCP"); String pdsh = System.getenv("SQ_PDSH"); - if (pdcp != null) { - execShell(pdcp + " " + nodes + " " + userPath + fileName.trim() + " " + userPath + " "); + LOG.info("SQ_PDCP=" + pdcp + ", SQ_PDSH=" + pdsh); + if (pdcp == null) { + pdcp = "/usr/bin/pdcp"; } - if (pdsh != null) { - execShell(pdsh + " " + nodes + " chmod 755 " + userPath + fileName.trim()); + if (pdsh == null) { + pdsh = "/usr/bin/pdsh"; } + execShell(pdcp + " " + nodes + " " + userPath + fileName.trim() + " " + userPath + " "); + execShell(pdsh + " " + nodes + " chmod 755 " + userPath + fileName.trim()); } } @@ -264,6 +267,7 @@ } private static String execShell(String cmd) throws IOException { + LOG.info("Processing command: " + cmd); Process p = Runtime.getRuntime().exec(cmd); if (p != null) { StringBuilder sb = new StringBuilder();