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 on Create Data Import Job #77

Open
GuillePardo opened this issue May 3, 2020 · 14 comments
Open

Error on Create Data Import Job #77

GuillePardo opened this issue May 3, 2020 · 14 comments

Comments

@GuillePardo
Copy link

At running the code for create data import I got this error:

An error occurred (InvalidInputException) when calling the CreateDatasetImportJob operation: No objects found in s3 path s3://bucket-name/AKIAVG6HB65434355, please ensure the path is specified correctly.

Can anyone help me with this? Thank you.

@chrisking
Copy link
Contributor

Looks like your bucket name was not altered, please update it to the bucket you used.

@GuillePardo
Copy link
Author

Hello Chrisking thankyou for your answe. I already checked the bucket name and evrything is correct. I don't know what else could be happening..

@chrisking
Copy link
Contributor

So the error you provided earlier was a generic name, thus the question. Can you confirm you are using an IAM role that has permissions to access that bucket? Also what notebook are you using?

@GuillePardo
Copy link
Author

That generic name was fulfilled with the real name of bucket at the notebook.

I am using a role with this access for Iam:

AmazonForecastFullAccess
AmazonS3FullAccess

aws

@GuillePardo
Copy link
Author

Iam using Jupyter Notebook

@chrisking
Copy link
Contributor

Which notebook in this repository are you using?

@GuillePardo
Copy link
Author

1.Getting_Data_Ready.ipynb

@GuillePardo
Copy link
Author

line:

datasetImportJobName = 'EP_DSIMPORT_JOB_TARGET'
ds_import_job_response=forecast.create_dataset_import_job(DatasetImportJobName=datasetImportJobName,
DatasetArn=datasetArn,
DataSource= {
"S3Config" : {
"Path": s3DataPath,
"RoleArn": role_arn
}
},
TimestampFormat=TIMESTAMP_FORMAT
)

@chrisking
Copy link
Contributor

Interesting, validating that the notebooks from scratch work in a clean environment, will report back later.

@GuillePardo
Copy link
Author

Thank you

@luseloso
Copy link

luseloso commented May 5, 2020

@GuillePardo can you confirm when you run a new cell printing the 's3DataPath' you are getting the correct bucket + key location?
The error can be when setting up this widget
text_widget_bucket = util.create_text_widget( "bucket_name", "input your S3 bucket name" )

A quick fix is to manually set the 'bucket_name' to your bucket directly without that text_widget_bucket

@GuillePardo
Copy link
Author

That's right, I confirmed three times the name of the bucket and the key. Also I confirm the structure

s3://bucket-name/AKIAVG6HB65434355

@luseloso
Copy link

luseloso commented May 5, 2020

That key should be the name of the file you are dropping into S3, in this case should look something like

s3://bucket-name/elec_data/item-demand-time-train.csv

The key from your comment looks like you AWS account key

@GuillePardo
Copy link
Author

Yes!! it Works.

Thank you very much!

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

3 participants