cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

getting short of error while mount to storage account.

kumarPatra_07
New Contributor

while mount to the storage account using this below code 

dbutils.fs.mount(
  source=f"wasbs://{cointainer_name}@{storage_name}.blob.core.windows.net",
  mount_point=f"/mnt/{cointainer_name}",
  extra_configs={f"fs.azure.account.key.{storage_name}.blob.core.windows.net": access_key}
)
it give this short of error can you help me to debug this
"
Py4JError: An error occurred while calling o448.mount. Trace: py4j.security.Py4JSecurityException: Method public com.[REDACTED].backend.daemon.dbutils.DBUtilsCore$Result com.[REDACTED].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.[REDACTED].backend.daemon.dbutils.DBUtilsCore at py4j.security.WhitelistingPy4JSecurityManager.checkCall(WhitelistingPy4JSecurityManager.java:473) at py4j.Gateway.invoke(Gateway.java:305) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:199) at py4j.ClientServerConnection.run(ClientServerConnection.java:119) at java.lang.Thread.run(Thread.java:750)
File <command-3603786488933343>, line 1 ----> 1 dbutils.fs.mount( 2 source=f"wasbs://</span><span>{</span><span class="ansi-yellow-bg">cointainer_name}@{storage_name}.blob.core.windows.net", 3 mount_point=f"/mnt/{cointainer_name}", 4 extra_configs={f"fs.azure.account.key.{storage_name}.blob.core.windows.net": access_key} 5 )"

File /[REDACTED]/spark/python/lib/py4j-0.10.9.7-src.zip/py4j/protocol.py:330, in get_return_value(answer, gateway_client, target_id, name) 326 raise Py4JJavaError( 327 "An error occurred while calling {0}{1}{2}.\n". 328 format(target_id, ".", name), value) 329 else: --> 330 raise Py4JError( 331 "An error occurred while calling {0}{1}{2}. Trace:\n{3}\n". 332 format(target_id, ".", name, value)) 333 else: 334 raise Py4JError( 335 "An error occurred while calling {0}{1}{2}". 336 format(target_id, ".", name))"
0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group