빠른 시작: Azure 데이터 탐색기로 샘플 데이터 수집Quickstart: Ingest sample data into Azure Data Explorer
이 문서에서는 Azure 데이터 탐색기로 샘플 데이터를 수집(로드)하는 방법을 설명합니다.This article shows you how to ingest (load) sample data into an Azure Data Explorer database. 데이터는 여러 가지 방식으로 수집할 수 있습니다. 이 문서에서는 테스트용으로 적합한 기본적인 방식을 중점적으로 설명합니다.There are several ways to ingest data; this article focuses on a basic approach that is suitable for testing purposes.
참고
Azure Data Explorer Python 라이브러리를 사용하여 데이터 수집을 완료한 경우 이 데이터는 이미 있습니다.You already have this data if you completed Ingest data using the Azure Data Explorer Python library.
사전 요구 사항Prerequisites
테스트 클러스터 및 데이터베이스A test cluster and database
데이터 수집Ingest data
StormEvents 샘플 데이터 집합에는 National Centers for Environmental Information에서 제공하는 날씨 관련 데이터가 포함되어 있습니다.The StormEvents sample data set contains weather-related data from the National Centers for Environmental Information.
https://dataexplorer.azure.com에 로그인합니다.Sign in to https://dataexplorer.azure.com.
애플리케이션의 왼쪽 위에서 클러스터 추가 를 선택합니다.In the upper-left of the application, select Add cluster.
클러스터 추가 대화 상자에
https://<ClusterName>.<Region>.kusto.windows.net/
형식으로 클러스터 URL을 입력하고 추가 를 선택합니다.In the Add cluster dialog box, enter your cluster URL in the formhttps://<ClusterName>.<Region>.kusto.windows.net/
, then select Add.다음 명령을 붙여넣고 실행 을 선택하여 StormEvents 테이블을 만듭니다.Paste in the following command, and select Run to create a StormEvents table.
.create table StormEvents (StartTime: datetime, EndTime: datetime, EpisodeId: int, EventId: int, State: string, EventType: string, InjuriesDirect: int, InjuriesIndirect: int, DeathsDirect: int, DeathsIndirect: int, DamageProperty: int, DamageCrops: int, Source: string, BeginLocation: string, EndLocation: string, BeginLat: real, BeginLon: real, EndLat: real, EndLon: real, EpisodeNarrative: string, EventNarrative: string, StormSummary: dynamic)
다음 명령을 붙여넣고 실행 을 선택하여 StormEvents 테이블에 데이터를 수집합니다.Paste in the following command, and select Run to ingest data into StormEvents table.
.ingest into table StormEvents 'https://kustosamplefiles.blob.core.windows.net/samplefiles/StormEvents.csv?sv=2019-12-12&ss=b&srt=o&sp=r&se=2022-09-05T02:23:52Z&st=2020-09-04T18:23:52Z&spr=https&sig=VrOfQMT1gUrHltJ8uhjYcCequEcfhjyyMX%2FSc3xsCy4%3D' with (ignoreFirstRecord=true)
수집이 완료되면 다음 쿼리를 붙여넣고 창에서 쿼리를 선택한 다음 실행 을 선택합니다.After ingestion completes, paste in the following query, select the query in the window, and select Run.
StormEvents | sort by StartTime desc | take 10
쿼리가 수집된 샘플 데이터에서 다음 결과를 반환합니다.The query returns the following results from the ingested sample data.
다음 단계Next steps
- Azure Data Explorer 데이터 수집에서 수집 방법에 대해 자세히 알아봅니다.Azure Data Explorer data ingestion to learn more about ingestion methods.
- 빠른 시작: Azure Data Explorer Web UI에서 데이터 쿼리를 완료합니다.Quickstart: Query data in Azure Data Explorer Web UI.
- Kusto 쿼리 언어를 사용하여 쿼리를 작성합니다.Write queries with Kusto Query Language.