【问题标题】:Can't run a file that exist无法运行存在的文件
【发布时间】:2016-09-29 02:31:44
【问题描述】:

无法运行存在的文件。我不确定为什么这给了我一个错误。 目前我正在尝试修复这个issue 但是,我似乎无法通过这一步。

a@a-VirtualBox:~/.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin$ ls
distribute-exclude.sh  kms.sh                   start-balancer.sh    stop-balancer.sh    yarn-daemons.sh
hadoop-daemon.sh       mr-jobhistory-daemon.sh  start-dfs.sh         stop-dfs.sh
hadoop-daemons.sh      refresh-namenodes.sh     start-secure-dns.sh  stop-secure-dns.sh
hdfs-config.sh         slaves.sh                start-yarn.sh        stop-yarn.sh
httpfs.sh              start-all.sh             stop-all.sh          yarn-daemon.sh
a@a-VirtualBox:~/.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin$ mr-jobhistory-daemon.sh start historyserver
mr-jobhistory-daemon.sh: command not found
a@a-VirtualBox:~/.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin$ hdfs dfs mr-jobhistory-daemon.sh start historyserver
mr-jobhistory-daemon.sh: Unknown command

【问题讨论】:

    标签: linux ubuntu hadoop terminal apache-pig


    【解决方案1】:

    也许你应该像这样运行这个命令:

    ./mr-jobhistory-daemon.sh
    

    或者像这样:

    PATH=$PATH:`pwd` mr-jobhistory-daemon.sh
    

    例如,第二个不能与可能位于“/usr/bin”中的另一个程序发生冲突。

    【讨论】:

      【解决方案2】:

      使用./program-name.sh arguments 执行工作目录中的程序。

      使用program-name.sh arguments 意味着它被PATH 变量和其他一些东西所覆盖。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-09-24
        • 1970-01-01
        • 2021-11-21
        • 1970-01-01
        • 2015-02-24
        • 2013-07-04
        • 2021-03-08
        • 2018-05-16
        相关资源
        最近更新 更多