cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!