commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ranjith Mandala <ranji...@gmail.com>
Subject Commons Exec with [exec]: {127=Process exited with an error: 127 (Exit value: 127)}
Date Sat, 17 Sep 2016 22:14:38 GMT
On Sat, Sep 17, 2016 at 3:12 PM, Ranjith Mandala <ranjithm@gmail.com> 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);
>
> DefaultExecutor executor = new DefaultExecutor();
>
> executor.execute();
>
> {127=Process exited with an error: 127 (Exit value: 127)}
>
> Simple command like hdfs dfs -ls / works fine but the above does not work.
>
> Thanks,
> Ranjith.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message