mr.sh: line 1: HADOOP_CMD: command not found mr.sh: line 4: INPUT_FILE_PATH: command not found mr.sh: line 6: OUTPUT_PATH: command not found mr.sh: line 8: fs: command not found Illegal option: / Usage: jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] files ... Options: -c create new archive -t list table of contents for archive -x extract named (or all) files from archiv
進行在分佈式集羣上跑MapReduce的時候,經過腳原本運行,發現提示找不到相應的命令。bash
HADOOP_CMD = "/usr/local/src/hadoop-2.6.5/bin/hadoop" STREAMING_JAR_PATH = "/usr/local/src/hadoop-2.6.5/share/hadoop/tools/lib/hadoop-streaming-2.6.5.jar" INPUT_FILE_PATH = "/data/The_Man_of_Property.txt" OUTPUT_PATH = "/OUTPUT/wc"
錯誤的緣由就是一條命令不要有空格,在等於號兩邊不要有空格,不要有空格,不要有空格。分佈式
有空格就會報錯。oop