Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running on hadoop "Found 2 unexpected arguments on the command line" #2201

Open
nadavdor15 opened this issue Sep 10, 2020 · 1 comment

Comments

@nadavdor15
Copy link

nadavdor15 commented Sep 10, 2020

Hey guys,

I tried to run a simple MapReduce job locally and it worked fine, but whenever I run it on hadoop I get this error:

Found 2 unexpected arguments on the command line [hdfs:///user/User/tmp/mrjob/MRBaseDiversitySolver.User.20200910.140702.323565/files/wd/mrjob.zip#mrjob.zip, hdfs:///user/User/tmp/mrjob/MRBaseDiversitySolver.User.20200910.140702.323565/files/wd/setup-wrapper.sh#setup-wrapper.sh]
  Try -help for more information

Here is the entire command:
Step 1 of 3 failed: Command '['C:\\hadoop\\bin\\hadoop.CMD', 'jar', 'C:/hadoop/share/hadoop/tools/lib/hadoop-streaming-2.8.0.jar', '-files', 'hdfs:///user/User/tmp/mrjob/MRBaseDiversitySolver.User.20200910.140702.323565/files/wd/MRBaseDiversitySolver.py#MRBaseDiversitySolver.py,hdfs:///user/User/tmp/mrjob/MRBaseDiversitySolver.User.20200910.140702.323565/files/wd/mrjob.zip#mrjob.zip,hdfs:///user/User/tmp/mrjob/MRBaseDiversitySolver.User.20200910.140702.323565/files/wd/setup-wrapper.sh#setup-wrapper.sh', '-input', 'hdfs:///user/User/tmp/mrjob/MRBaseDiversitySolver.User.20200910.140702.323565/files/groups_dh_1.csv', '-output', 'hdfs:///user/User/tmp/mrjob/MRBaseDiversitySolver.User.20200910.140702.323565/step-output/0000', '-mapper', '/bin/sh -ex setup-wrapper.sh python3 MRBaseDiversitySolver.py --step-num=0 --mapper', '-reducer', '/bin/sh -ex setup-wrapper.sh python3 MRBaseDiversitySolver.py --step-num=0 --reducer']' returned non-zero exit status 1.

It seems to me that hadoop won't allow uploading more that one file using the flag -files.

Have you encountered that? If so, have did you solve it?

I would really appreciate your help since I need this for my Final B.Sc project.

Thanks in advance

@gaurav0804
Copy link

I am also facing the same issue. Is this resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants