Skip to content

Processing job: Cannot specify s3 uri as code location #1163

Closed

Description

@elvinx

According to the docs, one can specify either S3 URI or a local path as code location while running processing jobs with SageMaker:
Screen Shot 2019-12-12 at 11 29 32 AM

This seems not to be the case.
When you specify the s3 path, SageMaker Python SDK still tries to create a default S3 bucket and upload the code to it.

I dug into the code base and can see that there is no check if the given path is an S3 path or not and default behavior is always to expect a local path.
https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/processing.py#L373

Screen Shot 2019-12-12 at 11 35 28 AM

Screen Shot 2019-12-12 at 11 38 09 AM

Expected behavior:
Allow S3 paths as a code location as stated in the docs.

Activity

  1. ajaykarpur commented on Dec 12, 2019

    @ajaykarpur
    Contributor

    Hi @elvinx, thanks for bringing this to our attention. We'll address this and release a fix as soon as we're able.

  2. self-assigned this
    on Dec 12, 2019
  3. andremoeller commented on Dec 13, 2019

    @andremoeller
    Contributor

    Thanks for reporting this @elvinx .

    I sent a pull request with the fix and tests: #1167

  4. elvinx commented on Dec 13, 2019

    @elvinx
    Author

    @andremoeller Thank you!

  5. andremoeller commented on Dec 13, 2019

    @andremoeller
    Contributor

    Hey @elvinx ,

    This fix has been released: https://github.com/aws/sagemaker-python-sdk/releases/tag/v1.47.0

    You can install this newest release into a notebook instance by:

    1. Running !pip install -U --user sagemaker
    2. Restarting the kernel.

    I'm closing this issue. Please feel free to reach out or reopen this if you run into issues. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions