通过unix运行mapreduce作业

时间:2013-05-21 17:55:31

标签: unix hadoop

我需要从unix shell脚本运行bellow map reduce命令。

MR_COMMAND="StreamsOnly_RM.jar -conf StreamsOnly_RM.xml \"$input_dir1/*/$IPPattern1\" $temp_output $output_dir"

echo命令会产生以下结果。

echo "hadoop jar $MR_COMMAND"

hadoop jar StreamsOnly_RM.jar -conf StreamsOnly_RM.xml "Streams0//{20130518,20130517}/*/part*" /temp/ /output

当我触发此命令时,这工作正常,但是在unix脚本中

hadoop jar $MR_COMMAND

为Streams0 // 20130518 / / part %22

提供异常java.uri.net异常无效路径异常

0 个答案:

没有答案