在python中,这是我如何从Azure blob访问CSV的方法
storage_account_name = "testname"
storage_account_access_key = "..."
file_location = "wasb://[email protected]/testfile.csv"
spark.conf.set(
"fs.azure.account.key."+storage_account_name+".blob.core.windows.net",
storage_account_access_key)
df = spark.read.format('csv').load(file_location, header = True, inferSchema = True)
如何在R中执行此操作?我找不到任何文档...
AzureStor程序包提供了一个指向Azure存储的R接口,包括文件,blob和ADLSgen2。
我遇到了与原始海报相同的问题。是否有人可以连接到Azure Blob存储并能够从那里将文件读取到R中的数据框中?