bash script command not found in the linux environment

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 is performed when running on a distributed cluster to run a script, I found not able to find the appropriate command.

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"

The cause of the error is a command with no spaces, no spaces on either side of the equal sign, no spaces, no spaces.

Spaces will be error.

Guess you like

Origin www.cnblogs.com/hanwen1014/p/10987809.html