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

Sagemaker - Java Errors while running notebook in a VPC #134

Open
gowthamprabhu opened this issue Mar 17, 2021 · 3 comments
Open

Sagemaker - Java Errors while running notebook in a VPC #134

gowthamprabhu opened this issue Mar 17, 2021 · 3 comments

Comments

@gowthamprabhu
Copy link

gowthamprabhu commented Mar 17, 2021

System Information

  • Spark or PySpark: Pyspark

Describe the problem

Sagemaker throws the exception as below while running notebook in a VPC
Java gateway process exited before sending its port number.

The same spark code works fine in the notebook running without VPC using conda python3 kernel.

@userkkw
Copy link

userkkw commented May 28, 2021

I have the same issue

@annamykcode
Copy link

Same for me

@annamykcode
Copy link

I found another way how to work with Spark in Sagemaker
But found the local_pyspark_example.ipynb in Sample Notebooks Sagemaker Processing chapter.
And there they propose to solve the issue as:

  1. If you see an exception in running the cell above similar to this - Exception: Java gateway process exited before sending the driver its port number, restart your JupyterServer app to make sure you're on the latest version of Studio.

  2. If you are running this notebook in a SageMaker Studio notebook, run the above cell as-is. If you are running on a SageMaker notebook instance, replace com.amazonaws.auth.ContainerCredentialsProvider with com.amazonaws.auth.InstanceProfileCredentialsProvider.

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