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

2016-09-19 Thread Paulo Roberto Massa Cereda
>> >> >> Gruss >> Bernd >> -- >> http://bernd.eckenfels.net >> From Win 10 Mobile >> >> >> >> Von: Ranjith Mandala >> Gesendet: Sonntag, 18. September 2016 19:11 >> An: Commons Users List >> Betreff: Re: Com

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

2016-09-19 Thread Christopher Schultz
of both >> commands) first. >> >> >> Gruss Bernd -- http://bernd.eckenfels.net From Win 10 Mobile >> >> >> >> Von: Ranjith Mandala Gesendet: Sonntag, 18. September 2016 19:11 >> An: Commons Users List Betreff: Re: Commons Exec with

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

2016-09-18 Thread Ranjith Mandala
gt; > Von: Ranjith Mandala > Gesendet: Sonntag, 18. September 2016 19:11 > An: Commons Users List > Betreff: Re: Commons Exec with [exec]: {127=Process exited with an error: > 127(Exit value: 127)} > > > > I googled but could not get much help. Can someone help on how to

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 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,

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

2016-09-17 Thread Ranjith Mandala
I did but its still the same issue. Any recommendation on how to construct the below command? On Saturday, September 17, 2016, Paulo Roberto Massa Cereda < cereda.pa...@gmail.com> wrote: > 'ello, > > I'd try building the command arguments through a sequence of > addArgument(...) calls instead of

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

2016-09-17 Thread Paulo Roberto Massa Cereda
'ello, I'd try building the command arguments through a sequence of addArgument(...) calls instead of relying on parse(...), which could be very tricky (mainly due to quoting). Best, Paulo Em 17-09-2016 19:14, Ranjith Mandala escreveu: On Sat, Sep 17, 2016 at 3:12 PM, Ranjith Mandala

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

2016-09-17 Thread Ranjith Mandala
On Sat, Sep 17, 2016 at 3:12 PM, Ranjith Mandala wrote: > Hi, > > I am trying to use the below command, but fails with Exit code 127. > Any help is appreciated. > > String command = "su -l ambari-qa -c 'hdfs dfs -ls /' > > CommandLine cmdLine = CommandLine.parse(command); > >