Git Product home page Git Product logo

Comments (16)

angelarw avatar angelarw commented on July 22, 2024

oh i think the problem is the IAM role with the glue managed policy gives access to
{
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::crawler-public*",
"arn:aws:s3:::aws-glue-*"
]
},
but your sample bucket starts with "awsglue-" so it doesn't match

from aws-glue-samples.

mashah avatar mashah commented on July 22, 2024

Thanks for pointing this out!

We will fix this in the documentation.

from aws-glue-samples.

alecswan avatar alecswan commented on July 22, 2024

I just ran into the same problem. AWS managed policy AWSGlueServiceRole provides access to "arn:aws:s3:::aws-glue-/". Would it be possible to move or copy data samples from s3://awsglue-datasets/examples to s3://aws-glue-datasets/examples?

from aws-glue-samples.

AdamShechter9 avatar AdamShechter9 commented on July 22, 2024

Running into same error as angelarw.
[49eaba68-d5c2-4245-803a-6ec9736422ea] ERROR : Error Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 8FF7A6AB88E7D7FA; S3 Extended Request ID: Wqplw7A9+PEVI5Cpg0hCwgm7UPEstv3Vbj+7sWDEo1/+6GaiFff2TE471wci3QR+yhZeO7NEtqA=) retrieving file at s3://awsglue-datasets/examples/us-legislators/all/persons.json. Tables created did not infer schemas from this file.

poorly done examples/instructions.

from aws-glue-samples.

Alvarosantoma avatar Alvarosantoma commented on July 22, 2024

I also had the same problem but it turned out that when you select the path for their bucket you have to specify that it an external path.

from aws-glue-samples.

pradeepn91 avatar pradeepn91 commented on July 22, 2024

I have the same as well, do we have to make to s3 bucket public to access make the bucket accessible to crawler?

from aws-glue-samples.

undertruck avatar undertruck commented on July 22, 2024

You can give "Full S3 Access" to Crawler IAM role to check if it works. Of course, after that you could secure policy as per your need. It worked for me.

from aws-glue-samples.

tejamuddada avatar tejamuddada commented on July 22, 2024

i am unable to crawler the json files and unable to create the tables

from aws-glue-samples.

undertruck avatar undertruck commented on July 22, 2024

@tejamuddada : what's the exact error?

from aws-glue-samples.

tejamuddada avatar tejamuddada commented on July 22, 2024

when i am trying to load the json files it is not creating exact no of tables as mentioned in example. It is not throwing an error .

from aws-glue-samples.

mukundv avatar mukundv commented on July 22, 2024

Had the same issue,
Fixed it by creating a custom policy by replacing references to "aws-glue" with "awsglue" and attaching to the role.

from aws-glue-samples.

moomindani avatar moomindani commented on July 22, 2024

also there's a typo in the s3 path (you have a dot at the end)
"s3://awsglue-datasets/examples/us-legislators."

Fixed this in c35f722.

Currently the developer guide (https://docs.aws.amazon.com/glue/latest/dg/console-crawlers.html) explains how to setup IAM role correctly for crawler. It already covers the issue reported here.

Resolving.

from aws-glue-samples.

jadenguyen0128 avatar jadenguyen0128 commented on July 22, 2024

Just want to share the tutorial where you could point the s3://awsglue-datasets/examples/us-legislators/all using AWS Glue Crawlers

4:48 of youtube.com/watch?v=zdaVBXfmSs0&t=5s

from aws-glue-samples.

xiaomuma99 avatar xiaomuma99 commented on July 22, 2024

You can give "Full S3 Access" to Crawler IAM role to check if it works. Of course, after that you could secure policy as per your need. It worked for me.

It works

from aws-glue-samples.

jacksonoh-360f avatar jacksonoh-360f commented on July 22, 2024

Writing a note that I had to figure this out from https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-samples-legislators.html which was a bad experience.

from aws-glue-samples.

ivaramme avatar ivaramme commented on July 22, 2024

I added the following to my datadest inline policy to get access to the public S3 bucket from the example:

"arn:aws:s3:::awsglue-datasets/examples/us-legislators/all/*"

That fixed it for me.

from aws-glue-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.