我想在 hadoop 集群上提交作业并收到此错误。你知道我该如何解决吗?或者至少一般来说有什么可能性?
java.lang.IllegalArgumentException: Can not create a Path from a null string
at org.apache.hadoop.fs.Path.checkPathArg(Path.java:87)
at org.apache.hadoop.fs.Path.<init>(Path.java:99)
Can not create a Path from a null string
null
这是提交我的工作的 bash 脚本。
#!/bin/bash
SUBMIT_SCRIPT=/usr/local/job_submit.sh
JAR_LOC="$PWD/Models.jar"
ORG_ID="2"
INPUT_LOC=/starting/part*
OUTPUT_LOC=/user/v/output
hadoop fs -rm -r ${OUTPUT_LOC}
LIB="$JAR_LOC" \
$SUBMIT_SCRIPT \
-j DataJob \
-m PassThrough -r PassThrough \
-DinputPath=${INPUT_LOC}\
-DoutputPath=${OUTPUT_LOC}
#hadoop fs -cat ${OUTPUT_LOC}/part* > out.txt