프로젝트 설정

이 문서에서는 Google Cloud 프로젝트 및 Compute Engine 가상 머신(VM)을 설정하는 방법을 설명합니다.

프로젝트 설정 Google Cloud

  1. 계정에 로그인합니다. Google Cloud 를 처음 사용하는 경우 Google Cloud, 계정을 만들어 실제 시나리오에서 제품이 어떻게 작동하는지 평가하세요. 신규 고객에게는 워크로드를 실행, 테스트, 배포하는 데 사용할 수 있는 $300의 무료 크레딧이 제공됩니다.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. Enable the Google Cloud Dataproc API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

  5. Google Cloud CLI를 설치합니다.

  6. 외부 ID 공급업체(IdP)를 사용하는 경우 먼저 제휴 ID로 gcloud CLI에 로그인해야 합니다.

  7. gcloud CLI를 초기화하려면, 다음 명령어를 실행합니다.

    gcloud init
  8. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  9. Verify that billing is enabled for your Google Cloud project.

  10. Enable the Google Cloud Dataproc API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

  11. Google Cloud CLI를 설치합니다.

  12. 외부 ID 공급업체(IdP)를 사용하는 경우 먼저 제휴 ID로 gcloud CLI에 로그인해야 합니다.

  13. gcloud CLI를 초기화하려면, 다음 명령어를 실행합니다.

    gcloud init

사용자 인증 정보가 필요한가요? 애플리케이션이나 브라우저에서 직접 Dataproc API를 호출할 계획인 경우에만 사용자 인증 정보가 필요합니다. Google Cloud 콘솔 또는 Google Cloud CLI를 사용하여 클러스터를 만들고 관리하며 작업을 제출할 계획인 경우 gcloud init 명령어를 사용하여 SDK에 로그인하면 됩니다.

(선택사항) VM 설정

Compute Engine 가상 머신(VM) 인스턴스에서 gcloud CLI를 실행할 계획인 경우 Google Cloud 서비스에 액세스할 수 있도록 VM을 설정해야 합니다.

VM이 제대로 설정되어 있는지 테스트하려면 명령줄에서 gcloud compute instances describe YOUR_VM_INSTANCE_NAME을 실행하세요. https://www.googleapis.com/auth/cloud-platform 범위를 포함하는 서비스 계정이 나열되어야 합니다. VM 설정에 대한 자세한 내용은 사용자 관리형 서비스 계정을 사용하는 VM 만들기를 참조하세요.