0
我想实现一个简单的LS通过壳行动的命令,但我面临一个错误,Oozie的外壳程序操作问题
精确问题: 脚本:
#!/bin/bash
ls /home/my-directory
标准输出日志:
>>> Invoking Shell command line now >>
Exit code of the Shell command 2
<<< Invocation of Shell command completed <<<
<<< Invocation of Main class completed <<<
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]
Oozie Launcher failed, finishing Hadoop job gracefully
Oozie Launcher ends
标准错误日志:
ls: cannot access /home/my-directory: No such file or directory
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]
有一个目录/ home /我的目录,它也有子目录。
如果有人能为我提供解决方案,这将是非常好的。
Hadoop文件系统中的/ home/my-directory还是“真实”文件系统? 'ls'不知道Hadoop。 – chepner
该目录位于我的linux文件系统中。 – Kasa
你解决了吗? – CruncherBigData