python - mrjob: Invalid bootstrap action path, must be a location in Amazon S3 -


I am on Windows 7. I have installed mrjob and when I run from the website, it works fine on the local machine. However, I get an error when trying to run it on the Amazon EMR. . EMR: Aws_access_key_id: Xxxxxxxxxxxxx Aws_region: us former -1 aws_secret_access_key I just Boto and it works with the Amazon S3

mrjob.conf file

  runners tested adding: XXXXXXXX ec2_key_pair: bzy ec2_key_pair_file: C: \ aa.pem ec2_instance_type: m1.small num_ec2_instances: 3 s3_log_uri: S3: // myunique / s3_scratch_uri: S3: // myunique /   < P> Run in my CMD  
  dragon word_count.py -c mrjob.conf -r emr mytext.txt   

it creates

Enter image details here

On suggestions that this is a window There was a problem related, I double checked the source code in parse.py, and it seems that there should be relevant probing to deal with window file types

  # candidate candidate Uri is actually a local Whether or not the window is in the way, it is used to check. WINPATH_RE = re.compile (r "^ [aA-zZ]: \\") def is_windows_path (uri): "" "return true if * Yuri is a window path." "" If WINPATH_RE.match (uri): returns true: return incorrect is_uri (uri): "" "If true, return URI to any type of URI." "If_windows_path (uri): Return false return bool (urlparse (uri) .checkme)   

I am getting the error after that I update code which is not understood , And I'm not sure how to proceed with it.

The problems you are facing Are in the way of the escape file (backslash) due to the Windows file system, just repeat it and you should not have any other problem.

Your Change the mrjob.conf file to:

  runner: AMR: aves_acce_key_id: xxxxxxxxxxxxx aws_region: us-east -1 aws_secret_access_key: XXXXXXXX ec2_key_pair: bzy ec2_key_pair_file: C: \\ aa.pem ec2_instance_type : m1.small num_ec2_instances: 3 s3_log_uri: S3: // myunique / s3_scratch_uri: S3: // myunique /   

Go here for more information: < / Html>

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -