databricks-certification icon indicating copy to clipboard operation
databricks-certification copied to clipboard

mountStorageContainer not working because of storageAccountName and storageAccountAccessKey

Open KhASQ opened this issue 3 years ago • 1 comments

Dear Raki

Thank you so much for the amazing content Your content helps me to get Databrics Spark cert

Can you please provide the data used in your file I don't have storageAccountName and storageAccountAccessKey

So if you can help me with the sources so I can download it manually

Thank you So much

KhASQ avatar Apr 08 '21 13:04 KhASQ

I created a storageAccountName and storageAccountAccessKey bet with no success

`Mounting bronze to /mnt/GoFast/bronze: ....Container is not mounted; Attempting mounting now.. java.io.FileNotFoundException: /: No such file or directory.

ExecutionError Traceback (most recent call last) in 19 20 # Mount "bronze" storage container ---> 21 mountStorageContainer(storageAccountName,storageAccountAccessKey,"bronze","/mnt/GoFast/bronze") 22 23 # Display directory

in mountStorageContainer(storageAccount, storageAccountKey, storageContainer, blobMountPoint) 12 source = "wasbs://{0}@{1}.blob.core.windows.net/".format(storageContainer, storageAccount), 13 mount_point = blobMountPoint, ---> 14 extra_configs = {"fs.azure.account.key.{0}.blob.core.windows.net".format(storageAccount): storageAccountKey}) 15 print("....Status of mount is: " + str(mountStatus)) 16 else:

/local_disk0/tmp/1617967834750-0/dbutils.py in f_with_exception_handling(*args, **kwargs) 322 exc.context = None 323 exc.cause = None --> 324 raise exc 325 return f_with_exception_handling 326

ExecutionError: An error occurred while calling o291.mount. : java.io.FileNotFoundException: /: No such file or directory. at shaded.databricks.org.apache.hadoop.fs.azure.NativeAzureFileSystem.getFileStatus(NativeAzureFileSystem.java:2324) at com.databricks.backend.daemon.dbutils.DBUtilsCore.verifyAzureFileSystem(DBUtilsCore.scala:503) at com.databricks.backend.daemon.dbutils.DBUtilsCore.mount(DBUtilsCore.scala:451) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244) at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:380) at py4j.Gateway.invoke(Gateway.java:295) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:251) at java.lang.Thread.run(Thread.java:748`

KhASQ avatar Apr 09 '21 13:04 KhASQ