- Newest
- Most votes
- Most comments
Hi ShumZZ,
I'm assuming your model container is built through Mleap's Databrick runtime integration. From the code base (https://github.com/combust/mleap/tree/master/mleap-databricks-runtime-fat), it seems that the underlying implementation is in Scala, which would require JNI bindings to interact with your Python code.
Have you tried running your model container locally? If the error persists when in your local environment, I would suggest reaching out to the Mleap community for assistance. To run your container locally, please follow the commands in
SageMaker documentation https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html
Thank you very much for trying out Amazon SageMaker! Please let us know if you have additional questions.
Best Regards,
Yijie
Hi Yijie,
Thanks so much for the reply! I followed your advice and saw indeed that the local test also failed with the same JNI error...
Yet I am a bit confused since I actually used Mlflow's CLI
mlflow sagemaker build-and-push-container
to build the container. I am quite new to all these concepts (this is actually the first time I've ever worked on an end-to-end ML project), so correct me if I am wrong, should I reach out to Mlflow community instead of Mleap? Or is it the case that under the hood the container is indeed built through Mleap's Databrick runtime integration? Any help/ clarifications/ advices would be much appreciated:)
Links that might be useful but I do not quite understand...
https://github.com/mlflow/mlflow/blob/master/mlflow/sagemaker/cli.py
https://github.com/mlflow/mlflow/blob/master/mlflow/models/docker_utils.py
After some discussion with the Mlflow community, we confirmed the bug, where Java dependencies are not correctly installed in the docker image that Mlflow uses by default. I posted a bug report (https://github.com/mlflow/mlflow/issues/1906) on Github and a temporary fix has been provided by @smurching (https://github.com/mlflow/mlflow/pull/1913).
Edited by: ShumZZ on Oct 10, 2019 12:04 PM
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 months ago