"Data Lake Store" 的 Azure Data Lake Storage 连接字符串是什么
What is the Azure Data Lake Storage Connection String For "Data Lake Store"
我正在尝试针对 AzureStorageEmulator 为我的 Azure Data Lake Storage (v1) 存储库编写单元测试。这可能吗?如果是这样,我将什么用于创建客户端的参数?另外,它将在我的文件系统中的什么位置存储这些数据?
var client = AdlsClient.CreateClient("accountFqdn????", "token???");
当我打开 "Microsoft Azure Storage Explorer" 时,我看到 "Data Lake Store (Preview)->(Development)" 作为一个选项,所以我认为这是可能的。
我认为 Azure Store 模拟器适用于:
Azure Blob, Queue, and Table services for development purposes
模拟 Data Lake Store 并不不幸(至少在撰写本文时是这样,但现在 Data Lake Store Gen2 由 blob 存储支持,这可能会改变)。
模拟器最接近的东西是 LocalRunHelper,但它用于本地测试 U-SQL,而不是连接到数据湖存储。
但是,如果您要编写单元测试(而不是端到端测试/集成测试),您可能希望查看具有相同 API 的 MockAdlsClient作为 AdlsClient 但在内存中工作。
我正在尝试针对 AzureStorageEmulator 为我的 Azure Data Lake Storage (v1) 存储库编写单元测试。这可能吗?如果是这样,我将什么用于创建客户端的参数?另外,它将在我的文件系统中的什么位置存储这些数据?
var client = AdlsClient.CreateClient("accountFqdn????", "token???");
当我打开 "Microsoft Azure Storage Explorer" 时,我看到 "Data Lake Store (Preview)->(Development)" 作为一个选项,所以我认为这是可能的。
我认为 Azure Store 模拟器适用于:
Azure Blob, Queue, and Table services for development purposes
模拟 Data Lake Store 并不不幸(至少在撰写本文时是这样,但现在 Data Lake Store Gen2 由 blob 存储支持,这可能会改变)。
模拟器最接近的东西是 LocalRunHelper,但它用于本地测试 U-SQL,而不是连接到数据湖存储。
但是,如果您要编写单元测试(而不是端到端测试/集成测试),您可能希望查看具有相同 API 的 MockAdlsClient作为 AdlsClient 但在内存中工作。