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: [email protected]
For additional commands, e-mail: [email protected]