none
Access DBUtils Not Whitelisted Data Lake with DataBricks and Python

    Question

  • Trying to follow the Azure documentation.

    configs = {"dfs.adls.oauth2.access.token.provider.type": "ClientCredential",
               "dfs.adls.oauth2.client.id": "<your-service-client-id>",
               "dfs.adls.oauth2.credential": dbutils.secrets.get(scope = "<scope-name>", key = "<key-name>"),
               "dfs.adls.oauth2.refresh.url": "https://login.microsoftonline.com/<your-directory-id>/oauth2/token"}
    
    # Optionally, you can add <your-directory-name> to the source URI of your mount point.
    dbutils.fs.mount(
      source = "adl://<your-data-lake-store-account-name>.azuredatalakestore.net/<your-directory-name>",
      mount_point = "/mnt/<mount-name>",
      extra_configs = configs)

    But getting a whitelist error?

    py4j.security.Py4JSecurityException: Method public com.databricks.backend.daemon.dbutils.DBUtilsCore$Result com.databricks.backend.daemon.dbutils.DBUtilsCore.mount(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Map) is not whitelisted on class class com.databricks.backend.daemon.dbutils.DBUtilsCore



    Thanx, Adam


    • Edited by Adam Rink Monday, January 21, 2019 5:23 PM
    Monday, January 21, 2019 5:22 PM

All replies