lab_code: dba_303_lab_ff5
title_en: "TiDB Admin Lab 6: Importing Data into TiDB Using TiDB Lightning"
title_zh: "管理 TiDB 实验 6: 使用 TiDB Lightning 将数据导入 TiDB"
title_ja: "管理 TiDB 演習 6: TiDB Lightning を使用して TiDB にデータをインポートする"
title_ko: "TiDB 관리 실습 6: TiDB Lightning을 사용하여 TiDB에 데이터 가져오기"
description_en: In this hands-on lab, you will learn how to import data into TiDB using TiDB Lightning. Specifically, we will cover how to import CSV files into TiDB, importing data into TiDB in parallel,  This lab is a practical workshop that allows you to learn how to import data into TiDB using TiDB Lightning.
description_zh: 在这个实验中，您将学习如何使用 TiDB Lightning 将数据导入 TiDB。具体来说，我们将介绍如何将 CSV 文件导入 TiDB、并行导入数据到 TiDB。这是一个实践性的研讨会，让您学习如何使用 TiDB Lightning 将数据导入 TiDB。
description_ja: このハンズオン演習では、TiDB Lightning を使用してデータを TiDB にインポートする方法を学びます。具体的には、CSV ファイルを TiDB にインポートし、TiDB にデータを並列にインポートする方法について説明します。この演習は、TiDB Lightning を使用してデータを TiDB にインポートする方法を学ぶことができる実践的なワークショップです。
description_ko: 이 실습에서는 TiDB Lightning을 사용하여 TiDB에 데이터를 가져오는 방법을 배우게 됩니다. 구체적으로, CSV 파일을 TiDB에 가져오고 TiDB에 병렬로 데이터를 가져오는 방법에 대해 설명합니다. 이 실습은 TiDB Lightning을 사용하여 TiDB에 데이터를 가져오는 방법을 배울 수 있는 실습적인 행사입니다.
splash_image_en: https://lab-static.pingcap.com/quick-demo/dba_303_ch07_en.png
splash_image_ja: https://lab-static.pingcap.com/quick-demo/dba_303_ch07_en.png
splash_image_zh: https://lab-static.pingcap.com/quick-demo/dba_303_ch07_en.png
splash_image_ko: https://lab-static.pingcap.com/quick-demo/dba_303_ch07_en.png
external_materials_en:
  - name: "TiDB Lightning Deck Template"
    url: https://docs.google.com/presentation/d/16NqNQ_bTWNLYivGzb1jGcZ2l1O_EijxW/edit?slide=id.p1#slide=id.p1
    employee_only: true
external_materials_ja:
  - name: "TiDB Lightningを運用するデッキテンプレート"
    url: https://docs.google.com/presentation/d/16NqNQ_bTWNLYivGzb1jGcZ2l1O_EijxW/edit?slide=id.p1#slide=id.p1
    employee_only: true
external_materials_zh:
  - name: "运维 TiDB Lightning 演示文稿模板"
    url: https://docs.google.com/presentation/d/16NqNQ_bTWNLYivGzb1jGcZ2l1O_EijxW/edit?slide=id.p1#slide=id.p1
    employee_only: true
external_materials_ko:
  - name: "TiDB Lightning를 운영하는 데크 템플릿"
    url: https://docs.google.com/presentation/d/16NqNQ_bTWNLYivGzb1jGcZ2l1O_EijxW/edit?slide=id.p1#slide=id.p1
    employee_only: true
lab_level: Intermediate
category_en:
  - Export and Import
  - Data Migration
category_zh:
  - 导出和导入
  - 数据迁移
category_ja:
  - エクスポートとインポート
  - データ移行
category_ko:
  - 내보내기와 가져오기
  - 데이터 마이그레이션
authors:
  - Fei Dong (CEG)
  - Todd Bao (CEG)
delivery_type: Instructor-Led
tidb_environments:
  - TiDB Self-Managed
tidb_versions:
  - 7.5.1
target_audience:
  - Architect
  - DBA
  - DevOps
regions:
  aws:
    - oregon
    - tokyo
    - singapore
    - frankfurt
credits: 1
credit_redeemable: true
employee_only: false
estimated_duration_minutes: 60

topology:
  - role: monitor
    node_count: 1
    web_ssh: true
    web_ssh_name: "TiUP Control Machine"
    ssh_user: ec2-user
  - role: pd
    node_count: 3
    ssh_user: ec2-user
  - role: kv
    node_count: 3
  - role: db
    node_count: 2
  - role: tiflash
    node_count: 1

requirements:
  - type: "CloudStack"

bootstrap:
  - name: "prepare monitor"
    type: "ShellScript"
    target:
      - monitor1
    script: ./scripts/prepare-monitor.sh

  - name: "prepare pd"
    type: "ShellScript"
    target:
      - pd1
      - pd2
    script: ./scripts/prepare-pd.sh

  - name: "prepare tidb"
    type: "ShellScript"
    target:
      - monitor1
    shell: |
      set -e
      sed -i "s|--yes|--yes >> /home/ec2-user/create-cluster-vinput.log 2>\&1|" /home/ec2-user/create-cluster-vinput.sh
      /home/ec2-user/create-cluster-vinput.sh ${TIDB_VERSION} ${REGION_NAME} solution-topology-ten-nodes.yaml

features:
  enable_content_explain: false
