cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

[Unity Catalog]-CosmosDB: Data source v2 are not supported

LoiLN
New Contributor III

I've worked on azure databricks connected to azure cosmos. It works when my cluster is not enabling Unity Catalog (UC).

But when I enable UC, it return error like below:
AnalysisException: [UC_COMMAND_NOT_SUPPORTED.WITHOUT_RECOMMENDATION] The command(s): Data source v2 are not supported in Unity Catalog.;

Please help me, thanks!

5 REPLIES 5

Wojciech_BUK
Valued Contributor III

Hey, please share 

  • code that is causing the bug
  • cluster access mode (shared or single user)
  • runtime version

Are you using this methid to connect;?

https://docs.databricks.com/en/connect/external-systems/cosmosdb-connector.html

There is chance that the methond you are using is not supported with UC and you might need to upgrad your code or use No isolation Shared cluster.

e.g. i have been publishing FS to Cosmos DB with AzureCosmosDBSpec and i switched from:

  • databricks.feature_store.online_store_spec
    to:
  • databricks.feature_engineering.online_store_spec
    when I strated using UC as previous library was returning me bugs.

 

LoiLN
New Contributor III

Hi, here is my configure:

  • cluster access mode: Shared
  • runtime version: 13.3 LTS

LoiLN_0-1703683975543.png

 

Wojciech_BUK
Valued Contributor III

You have to use Single user access mode and it will work with Unity.
Shared Access mode has some limitations 😞 

Wojciech_BUK
Valued Contributor III

Wojciech_BUK_0-1703686263208.pngWojciech_BUK_1-1703686291794.pngWojciech_BUK_2-1703686321720.png

 

LoiLN
New Contributor III

It works for single mode, thank you very much!

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!