您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

用于 .NET 的 Azure Data Lake Analytics 库Azure Data Lake Analytics libraries for .NET

概述Overview

Azure Data Lake Analytics 是一项按需分析作业服务,用于简化大数据分析。Azure Data Lake Analytics is an on-demand analytics job service to simplify big data analytics.

有关详细信息,请参阅 Microsoft Azure Data Lake Analytics 概述To learn more, see Overview of Microsoft Azure Data Lake Analytics.

管理库Management library

使用管理库可连接到服务和管理分析作业。Use the management library to connect to the service and manage analytics jobs.

直接从 Visual Studio 包管理器控制台或使用 .NET Core CLI 安装 NuGet 包Install the NuGet package directly from the Visual Studio Package Manager console or with the .NET Core CLI.

Visual Studio 包管理器Visual Studio Package Manager

Install-Package Microsoft.Azure.Management.DataLake.Analytics
dotnet add package Microsoft.Azure.Management.DataLake.Analytics

代码示例Code Example

此示例创建用于连接和管理分析帐户的客户端。This example creates the clients to connect with and manage the analytics account.

/*
using AdlClient 
*/

// Setup authentication for this demo
Authentication auth = new Authentication("microsoft.onmicrosoft.com"); // change this to YOUR tenant
auth.Authenticate();

// Identify the accounts
AnalyticsAccountRef adla_account = new AnalyticsAccountRef(subscriptionId, resourceGroup, userName);

// Create the clients
AzureClient az = new AzureClient(auth);
AnalyticsClient adla = new AnalyticsClient(auth, adla_account);

示例Samples

详细了解可在应用中使用的示例 .NET 代码Explore more sample .NET code you can use in your apps.