创建与 Azure Data Lake Storage Gen2 配合使用的存储帐户Create a storage account to use with Azure Data Lake Storage Gen2

若要使用 Data Lake Storage Gen2 功能,请创建具有分层命名空间的存储帐户。To use Data Lake Storage Gen2 capabilities, create a storage account that has a hierarchical namespace.

选择存储帐户类型Choose a storage account type

以下类型的存储帐户支持 Data Lake Storage 功能:Data Lake Storage capabilities are supported in the following types of storage accounts:

  • 常规用途 v2General-purpose v2
  • BlockBlobStorageBlockBlobStorage

有关如何在它们之间进行选择的信息,请参阅存储帐户概述For information about how to choose between them, see storage account overview.

创建具有分层命名空间的存储帐户Create a storage account with a hierarchical namespace

在启用“分层命名空间”设置的情况下创建常规用途 V2 帐户BlockBlobStorage 帐户。Create either a general-purpose V2 account or a BlockBlobStorage account with the Hierarchical namespace setting enabled.

在创建帐户时解锁 Data Lake Storage 功能,方法如下:在“创建存储帐户”页面的“高级”选项卡中启用“分层命名空间”设置。 Unlock Data Lake Storage capabilities when you create the account by enabling the Hierarchical namespace setting in the Advanced tab of the Create storage account page. 必须在创建帐户时启用此设置。You must enable this setting when you create the account. 无法在以后启用它。You can't enable it afterwards.

下图显示了“创建存储帐户”页中的此设置。The following image shows this setting in the Create storage account page.

分层命名空间设置Hierarchical namespace setting

如果你有一个要与 Data Lake Storage 配合使用的现有存储帐户,并且已禁用了分层命名空间设置,则必须将数据迁移到启用了该设置的新存储帐户。If you have an existing storage account that you want to use with Data Lake Storage, and the hierarchical namespace setting is disabled, you must migrate the data to a new storage account that has the setting enabled.

后续步骤Next steps