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: 

Cluster policy type

thrinadhReddy
New Contributor II

Hi guys,

I am creating a cluster policy through json. 

"runtime_engine": {

"type": "fixed"

"value": "PHOTON"

}

When I run the above code... PHOTON option is getting enabled but graying out... What would I specify in type field so that the photon option should not be grayed out.

Thank you 😊

4 REPLIES 4

Hi Kaniz,

Thanks for the reply.

Yes. This is exactly what I am looking for.

"It appears that you’re trying to configure the runtime_engine in Databricks cluster policy using JSON. The PHOTON option is getting enabled but greyed out, and you’d like to know how to prevent that. Let’s dive into this!"

I don't want it to be grayed out.. I just want it to be checked and accessible...

I used standard Databricks Runtime (11.3 LTS (Scala 2.12, Spark 3.3.0)).

Is there anything other than type=fixed, so that it won't gray out.

Yeshwanth
Databricks Employee
Databricks Employee

@thrinadhReddy

This section includes a reference for each of the available policy types. There are two categories of policy types: fixed policies and limiting policies.

Fixed policies prevent user configuration on an attribute. The two types of fixed policies are:

https://docs.databricks.com/en/admin/clusters/policy-definition.html#supported-policy-types

Beast regards,

Yesh

Hi Yeshwant,

I did go through that link. No combination of choices work in my scenario. I tried all type options, nothing works.

Khalil_Robinson
New Contributor II

Hey, 

If you change the type to "allowlist" and provide "PHOTON" and "STANDARD" as options that should fix your issue.

here is an example:

 

"runtime_engine": {

"type": "allowlist"

"value": ["PHOTON", "STANDARD"]

"defaultValue": "PHOTON"

}

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now