FileNotFoundError: [Errno 2] - Score machine learning models with PREDICT in serverless Apache Spark pools (Synapse & Azure Machine learning AML)

Anaid 61 Reputation points
2021-12-17T10:59:36.307+00:00

Hi all,

I am following the steps on this tutorial:
Tutorial: Score machine learning models with PREDICT in serverless Apache Spark pools tutorial-score-model-predict-spark-pool
and what-is-aml-model-uri-predict-in-serverless-apache-1.html
I tried to used a model created with AutoML and another from designer and I am getting this error: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp5xd2_hyr/MLmodel'

I added the DATA_FILE:
158543-1-image.png
I am getting this error (I am using Synapse):
158505-2-image.png

Kind regards,
Anaid

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,576 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,400 questions
{count} votes

4 answers

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 77,751 Reputation points Microsoft Employee
    2021-12-20T08:41:11.013+00:00

    Hello @Anaid ,

    Thanks for the question and using MS Q&A platform.

    Make sure you have upload the mlflow folder to AML, not the parent folder to AML.

    Note: As per the repro, I got the same error message when I uploaded the parent folder to the AML workspace.

    158992-image.png

    Able to resolve the issue by uploading the mlflow folder to AML workspace.

    DATA_FILE = "abfss://data@cheprasynapse.dfs.core.windows.net/AML/LengthOfStay_cooked_small.csv"  
    AML_MODEL_URI_SKLEARN = "aml://chepra:1" #Here ":1" signifies model version in AML. We can choose which version we want to run. If ":1" is not provided then by default latest version will be picked  
    RETURN_TYPES = "INT"  
    RUNTIME = "mlflow"  
    

    158945-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

  2. AdamNevin-8126 52 Reputation points
    2022-01-13T08:00:37.883+00:00

    Hello,

    Can you explain a bit more on uploading the MLFlow to AML.

    We currently have BoosteDecisionTitanic:1 in models on AML. How do we upload the MLFlow to AML.

    164634-image.png


  3. Anaid 61 Reputation points
    2022-01-14T15:02:26.86+00:00

    Hello,

    Can you explain a bit more on uploading the MLFlow to AML. Where are those files and how can we upload them?

    We currently have BoosteDecisionTitanic:1 in models on AML. How do we upload the MLFlow to AML.
    165193-screenshot-2022-01-14-150120.png

    Kind regards,
    Anaid

    0 comments No comments

  4. Praveen 1 Reputation point
    2022-03-24T18:34:32.82+00:00

    any solution yet?