cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Model Serving error - Java gateway process exited before sending its port number

Nikhil3107
New Contributor III

Hello, I am trying to serve a model endpoint (using Databricks GUI) for a model that was successfully logged to the Model Registry. However, the endpoint creation failed with the following errors:

Endpoint logs with error messages

image.pngEndpoint events with error messages

Endpoint events 

Model logging code

log model 

PyFunc Wrapper class

image 

Could I please get some assistance? Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions

Kaniz
Community Manager
Community Manager

Hi @Nikhil Gajghate​, When encountering the error message "Java gateway process exited before sending its port number," it typically indicates an issue with the configuration or setup of the Apache Spark™ Java gateway.

Here are a few steps you can take to troubleshoot and resolve this issue:

  1. Check Java Version: Ensure that you have a compatible Java version installed on your system. Apache Spark™ typically requires Java 8 or later. You can verify the Java version by running the java -version in your terminal.
  2. Verify Spark Version: Ensure you have a compatible version of Apache Spark™ installed that matches the version of the Java gateway you're using.

View solution in original post

2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @Nikhil Gajghate​, When encountering the error message "Java gateway process exited before sending its port number," it typically indicates an issue with the configuration or setup of the Apache Spark™ Java gateway.

Here are a few steps you can take to troubleshoot and resolve this issue:

  1. Check Java Version: Ensure that you have a compatible Java version installed on your system. Apache Spark™ typically requires Java 8 or later. You can verify the Java version by running the java -version in your terminal.
  2. Verify Spark Version: Ensure you have a compatible version of Apache Spark™ installed that matches the version of the Java gateway you're using.

Anonymous
Not applicable

Hi @Nikhil Gajghate​ 

We haven't heard from you since the last response from @Kaniz Fatma​ ​, and I was checking back to see if her suggestions helped you.

Or else, If you have any solution, please share it with the community, as it can be helpful to others. 

Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.