當我試圖提供一個模型與FeatureStoreClient存儲()。使用feature-store-online-example-cosmosdb log_model教程筆記本,我得到錯誤表明主鍵模式不正確配置。然而,如果我看商店的功能,它列出了
主鍵:wiine_id(長),
這似乎是正確的。實驗和模型也在MLflow正確跟蹤,隻是服務不工作時(包括遺留模型中的服務和服務端點)。我也檢查了這教程PluralSight,似乎我不缺少任何步驟設置服務。我有一個運行時上運行本教程筆記本12.2 LTS毫升集群。
有人有一個想法我如何解決這個問題?謝謝!
+回聲“GUNICORN_CMD_ARGS =——超時63工人4”GUNICORN_CMD_ARGS =——超時63工人4 + mlflow模型——no-conda - m / tmp / tmp67u15n1s /服務模型- h unix: / tmp / 1。襪子p1 2023/04/13 mlflow.models 11:17:05信息。flavor_backend_registry:選擇後端味道的python_function 2023/04/13 mlflow.pyfunc 11:17:05信息。後端:= = =運行命令的執行gunicorn——timeout = 60 - b unix: / tmp / 1。襪子:1 - w 1 $ {GUNICORN_CMD_ARGS}——mlflow.pyfunc.scoring_server。wsgi:應用[2023-04-13 11:17:06 + 0000][2419][信息]開始gunicorn 20.1.0[2023-04-13 11:17:06 + 0000][2419][信息]聽:unix: / tmp / 1。襪子:1(2419)[2023-04-13 11:17:06 + 0000][2419][信息]使用工人:同步[2023-04-13 11:17:06 + 0000][2420][信息]與pid引導職工:2420[2023-04-13 11:17:06 + 0000][2421][信息]與pid引導職工:2421[2023-04-13 11:17:06 + 0000][2422][信息]與pid引導職工:2422[2023-04-13 11:17:06 + 0000][2423][信息]與pid引導職工:2423[2023-04-13 11:17:07 + 0000][2421](錯誤)異常工作進程回溯(最近的電話最後):文件“/磚/ conda / env / model 1 / lib / python3.9 /網站/ gunicorn /仲裁者。py”, 589行,在spawn_worker worker.init_process()文件”/磚/ conda / env / model 1 / lib / python3.9 /網站/ gunicorn /工人/基地。py”, 134行,在init_process self.load_wsgi()文件”/磚/ conda / env / model 1 / lib / python3.9 /網站/ gunicorn /工人/基地。py”, 146行,在load_wsgi自我。wsgi = self.app.wsgi()文件“/磚/ conda / env / model 1 / lib / python3.9 /網站/ gunicorn / app /基地。py”, 67行,在wsgi自我。可調用= self.load()文件“/磚/ conda / env / model 1 / lib / python3.9 /網站/ gunicorn / app / wsgiapp。py”,第58行,在負載返回self.load_wsgiapp()文件”/磚/ conda / env / model 1 / lib / python3.9 /網站/ gunicorn / app / wsgiapp。py”, 48, load_wsgiapp返回util.import_app (self.app_uri)文件“/磚/ conda / env / model 1 / lib / python3.9 /網站/ gunicorn /跑龍套。py”, 359行,import_app mod = importlib.import_module(模塊)文件“/磚/ conda / env / model 1 / lib / python3.9 / importlib / __init__。py”, 127行,在import_module _bootstrap返回。_gcd_import(名稱[:],包級別)文件”< importlib凍結。_bootstrap >”,第1030行_gcd_import文件”< importlib凍結。_bootstrap >”,第1007行_find_and_load文件”< importlib凍結。_bootstrap>", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 855, in exec_module File "", line 228, in _call_with_frames_removed File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/mlflow/pyfunc/scoring_server/wsgi.py", line 6, in app = scoring_server.init(load_model(os.environ[scoring_server._SERVER_MODEL_PATH])) File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/mlflow/pyfunc/__init__.py", line 582, in load_model model_impl = importlib.import_module(conf[MAIN])._load_pyfunc(data_path) File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/databricks/feature_store/mlflow_model.py", line 634, in _load_pyfunc return _FeatureStoreModelWrapper(path) File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/databricks/feature_store/mlflow_model.py", line 120, in __init__ self.ft_to_lookup_client = self._create_lookup_clients(self.ft_metadata) File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/databricks/feature_store/mlflow_model.py", line 189, in _create_lookup_clients ft_to_lookup_client[ft] = OnlineLookupClient( File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/databricks/feature_store/online_lookup_client.py", line 174, in __init__ self.lookup_engine = self._generate_lookup_engine( File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/databricks/feature_store/online_lookup_client.py", line 189, in _generate_lookup_engine return OnlineLookupClient._generate_lookup_engine_databricks( File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/databricks/feature_store/online_lookup_client.py", line 227, in _generate_lookup_engine_databricks return generate_lookup_cosmosdb_engine(online_feature_table, creds) File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/databricks/feature_store/online_lookup_client.py", line 82, in generate_lookup_cosmosdb_engine return LookupCosmosDbEngine(online_feature_table, authorization_key=creds) File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/databricks/feature_store/lookup_engine/lookup_cosmosdb_engine.py", line 68, in __init__ self._validate_online_feature_table() File "/databricks/conda/envs/model-1/lib/python3.9/site-packages/databricks/feature_store/lookup_engine/lookup_cosmosdb_engine.py", line 80, in _validate_online_feature_table raise ValueError( ValueError: Online Table online_feature_store_example.feature_store_online_wiine_features primary key schema is not configured properly.
你好@Thomas Michielsen,這個錯誤發生在你自己可能已經創建了表。
你必須使用publish_table()來創建表的在線商店。不要手動創建一個數據庫或容器內宇宙DB。
為您自動publish_table()呢。
如果你沒有使用創建一個表
publish_table(),該模式可能不兼容,寫命令將失敗。
你能請確認如果您使用publish_table () ?
感謝和問候,
Nandini
你好@Thomas Michielsen,這個錯誤發生在你自己可能已經創建了表。
你必須使用publish_table()來創建表的在線商店。不要手動創建一個數據庫或容器內宇宙DB。
為您自動publish_table()呢。
如果你沒有使用創建一個表
publish_table(),該模式可能不兼容,寫命令將失敗。
你能請確認如果您使用publish_table () ?
感謝和問候,
Nandini