我正在尝试通过 shell 操作实现一个简单的 ls 命令,但我遇到了一个错误,
确切问题: 脚本:
#!/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/my-directory ,它也有子目录。
如果有人可以为我提供解决方案,那就太好了。