Git Product home page Git Product logo

Comments (3)

kimberlyma avatar kimberlyma commented on June 10, 2024 1

Hello, instead of a string value data_security_mode expects a valid Enum from the DataSecurityMode DataClass (docs | class definition)

data_security_mode=compute.DataSecurityMode.SINGLE_USER

Here is an example on how to create a Personal Compute cluster (node type specific to AWS). Here I'm applying the default settings included in the Personal Compute cluster policy via apply_policy_default_values. The Personal Compute policy_id will be different in your workspace.

from databricks.sdk import WorkspaceClient
from databricks.sdk.service import compute

w = WorkspaceClient()

latest = w.clusters.select_spark_version(latest=True,ml=True)
me = w.current_user.me().user_name

clstr = w.clusters.create(cluster_name="my-personal-cluster",
                          apply_policy_default_values= True,
                          spark_version=latest,
                          single_user_name= me,
                          node_type_id="i3.2xlarge",
                          policy_id="E0631F5C0D0006D3"
                          )

from databricks-sdk-py.

mgyucht avatar mgyucht commented on June 10, 2024

Thanks @kimberlyma. @bd-team-kc did this resolve your issue?

We'll take an action item to give better error messages when users provide strings instead of enums in parameters that expect enums.

from databricks-sdk-py.

bd-team-kc avatar bd-team-kc commented on June 10, 2024

@kimberlyma @mgyucht
Thanks. I replaced it to compute.DataSecurityMode.SINGLE_USER , the error was solved.

from databricks-sdk-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.