Introduction
You want to disable the JDBC connection on an all purpose compute but don’t see an option in the UI to do so.
Instructions
Add the following init script to the all-purpose compute to disable the JDBC connection.
#!/bin/bash
cat > /databricks/common/conf/disable_jdbc_odbc.conf << EOL
{
databricks.daemon.driver.startJDBC = false
}
EOL
You may see a 502 error when you disable JDBC. This error is expected, and confirms your init script is working as intended.
If you attempt to connect from a local machine using a Java file and the Databricks JDBC driver, a similar error is returned.
Communication link failure. Failed to connect to server. Reason: HTTP Response code: 502, Error message: Unknown.