wdphilli
Databricks Partner

Hi @OvZ & @LandanG, as a point of clarification, the script provided is intended to be run in a notebook first. After running the below in a notebook, it creates the init script at the location "dbfs:/databricks/init_scripts/disable_jdbc_odbc.conf"

 

%scala
val initScriptContent = s"""
 |#!/bin/bash
 |cat > /databricks/common/conf/disable_jdbc_odbc.conf << EOL
 |{
 |  databricks.daemon.driver.startJDBC = false
 |}
 |EOL
""".stripMargin
dbutils.fs.put("dbfs:/databricks/init_scripts/disable_jdbc_odbc.conf",initScriptContent, true)

 From there, it can be added as a cluster-scoped init script under Advanced options:

wdphilli_0-1706713371163.png

After cluster startup, you will notice that the JDBC/ODBC tab does not appear in the Spark UI:

wdphilli_1-1706713417889.png

JDBC/ODBC connections will also fail with a 502 error:

wdphilli_2-1706713520973.png