currently I am trying to give terminal commands, the code is below:
p = Runtime.getRuntime().exec(new String[]{"/bin/sh","-c","hadoop fs -cat /user/hive/warehouse/new_cur2/* > /home/leo/new_cur2.csv"});
It is giving me the error exit: 127 Can anyone fix it please?
Many thanks