从R笔记本访问Azure blob存储

问题描述 投票:1回答:2

在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中执行此操作?我找不到任何文档...

r azure azure-storage sparkr
2个回答
1
投票

AzureStor程序包提供了一个指向Azure存储的R接口,包括文件,blob和ADLSgen2。


0
投票

我遇到了与原始海报相同的问题。是否有人可以连接到Azure Blob存储并能够从那里将文件读取到R中的数据框中?

© www.soinside.com 2019 - 2024. All rights reserved.