Error while running spark.catalog.listDatabases()

Punnu
New Contributor II

I am running steps mentioned in https://github.com/databrickslabs/splunk-integration/blob/master/notebooks/source/push_to_splunk.py

When I am running

spark.catalog.listDatabases()

getting error

py4j.security.Py4JSecurityException: Method public java.lang.String org.apache.spark.sql.catalog.Database.name() is not whitelisted on class class org.apache.spark.sql.catalog.Database