Note that there are some explanatory texts on larger screens.

plurals
  1. POpython mrjob - gaierror: [Errno -2] Name or service not known
    primarykey
    data
    text
    <p>I'm trying to access s3 files from the mrjob module. Here's the code that's failing:</p> <pre><code>from mrjob.emr import S3Filesystem fs = S3Filesystem("&lt;aws_access_key_id&gt;", "&lt;aws_secret_access_key&gt;", "us-west-2") fs.get_s3_key("s3n://&lt;bucket&gt;/&lt;folder&gt;/file.txt") </code></pre> <p>(but with the actual aws_access_key_id, aws_secret_access_key, bucket, and folder) and the error I'm getting is:</p> <pre><code>Traceback (most recent call last): File "&lt;input&gt;", line 1, in &lt;module&gt; File "/usr/local/lib/python2.7/dist-packages/mrjob/fs/s3.py", line 235, in get_s3_key bucket = s3_conn.get_bucket(bucket_name) File "/usr/local/lib/python2.7/dist-packages/mrjob/retry.py", line 80, in call_and_maybe_retry return f(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/boto/s3/connection.py", line 431, in get_bucket bucket.get_all_keys(headers, maxkeys=0) File "/usr/local/lib/python2.7/dist-packages/boto/s3/bucket.py", line 375, in get_all_keys '', headers, **params) File "/usr/local/lib/python2.7/dist-packages/boto/s3/bucket.py", line 332, in _get_all query_args=query_args) File "/usr/local/lib/python2.7/dist-packages/boto/s3/connection.py", line 547, in make_request retry_handler=retry_handler File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 947, in make_request retry_handler=retry_handler) File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 908, in _mexe raise e gaierror: [Errno -2] Name or service not known </code></pre> <p>Any suggestions? Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload