Re: Commons Exec with [exec]: {127=Process exited with an error: 127 (Exit value: 127)}

2016-09-18 Thread Russell Sherk
Please Google error code 127. The command you are trying to run may not be on the path. --Russ On Sep 17, 2016 10:40 PM, Ranjith Mandala wrote: I did but its still the same issue. Any recommendation on how to construct the below command? On Saturday, September 17, 2016,

AW: Commons Exec with [exec]: {127=Process exited with an error: 127(Exit value: 127)}

2016-09-18 Thread ecki
Try /bin/su …/opt/hadoop/bin/hdfs… (use the absolute path of both commands) first. Gruss Bernd -- http://bernd.eckenfels.net >From Win 10 Mobile Von: Ranjith Mandala

Re: Commons Exec with [exec]: {127=Process exited with an error: 127 (Exit value: 127)}

2016-09-18 Thread Ranjith Mandala
I googled but could not get much help. Can someone help on how to construct the below command using this API. Unfortunately, there is not much docs/examples to figure this out. It would be nice to put some samples on the doc. The basic commands work. The issue here is with the below commands.

Re: Commons Exec with [exec]: {127=Process exited with an error: 127(Exit value: 127)}

2016-09-18 Thread Ranjith Mandala
Below command fails to execute. Please let me know what I am doing wrong. CommandLine cmdLine = new CommandLine("/bin/bash"); cmdLine.addArguments(new String[] {"-c", "ls -l" }); /bin/bash: ls -l: command not found Exit Value = 127 {127=Process exited with an error: 127 (Exit value: 127)} On