Skip to content

Scikit processing example - Client LogStream error #8 #2253

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

Closed
gerold-csendes-epam opened this issue Mar 29, 2021 · 1 comment
Closed

Scikit processing example - Client LogStream error #8 #2253

gerold-csendes-epam opened this issue Mar 29, 2021 · 1 comment

Comments

@gerold-csendes-epam
Copy link

Describe the bug
When running the the local scikit-learn processing srcipt on a notebook instance the training job finishes successfully but I get the following error (I substituted the user and and resource id-s with ....):
ClientError: An error occurred (AccessDeniedException) when calling the DescribeLogStreams operation: User: ... is not authorized to perform: logs:DescribeLogStreams on resource: ... -group:/aws/sagemaker/ProcessingJobs:log-stream

It seems like it is trying to write logs which is not really necessary in the local mode, is it? Maybe the issue is that I run the script on sagemaker?

I originally posted the issue at the local example repo

To reproduce
Run the aforementioned notebook.

Screenshots or logs
This is the last thing that gets outputted before the error:

405xfy7qlb-algo-1-xyh7a | Processing Complete
405xfy7qlb-algo-1-xyh7a exited with code 0
Aborting on container exit...
===== Job Complete =====

System information
A description of your system. Please provide:

  • SageMaker Python SDK version: 2.31.1
  • Framework name (eg. PyTorch) or algorithm (eg. KMeans): Sklearn
  • Framework version: 0.20.0
  • Python version: python3
  • CPU or GPU: CPU
  • Custom Docker image (Y/N): N

Additional context
I can get rid of the error by specifying logs=False argument.

@NeilJonkers
Copy link
Contributor

I can reproduce this issue with SKLearnProcessor in local mode.
In Cloudtrail I can detect the DescribeLogStreams API call

NeilJonkers pushed a commit to NeilJonkers/sagemaker-python-sdk that referenced this issue Apr 10, 2021
…LogStreams() against CloudWatch logs endpoint. Issue aws#2253
ahsan-z-khan added a commit that referenced this issue Aug 12, 2021
…be… (#2282)

Co-authored-by: EC2 Default User <[email protected]>
Co-authored-by: Ahsan Khan <[email protected]>
Co-authored-by: Shreya Pandit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants