이 문서에서는 Google Cloud 프로젝트 및 Compute Engine 가상 머신(VM)을 설정하는 방법을 설명합니다.
Google Cloud 프로젝트 설정
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
사용자 인증 정보가 필요한가요? 애플리케이션이나 브라우저에서 직접 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 만들기를 참조하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-26(UTC)"],[[["\u003cp\u003eThis document provides instructions on setting up a Google Cloud project and a Compute Engine virtual machine (VM).\u003c/p\u003e\n"],["\u003cp\u003eCredentials are only necessary when directly calling Dataproc APIs from an application or browser, not when using the Google Cloud console or the gcloud CLI.\u003c/p\u003e\n"],["\u003cp\u003eIf utilizing a Compute Engine VM to run gcloud CLI, it must be configured to access Google Cloud services, with a service account that includes the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eCloud Shell can be used as an alternative to setting up a personal VM, as it automatically provisions a VM with the necessary scopes to run gcloud CLI commands.\u003c/p\u003e\n"]]],[],null,["This document describes how to set up a Google Cloud project and a\nCompute Engine virtual machine (VM).\n\nSet up a Google Cloud project\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Google Cloud Dataproc API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=dataproc)\n-\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n- If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n-\n To [initialize](/sdk/docs/initializing) the gcloud CLI, run the following command:\n\n ```bash\n gcloud init\n ```\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Google Cloud Dataproc API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=dataproc)\n-\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n- If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n-\n To [initialize](/sdk/docs/initializing) the gcloud CLI, run the following command:\n\n ```bash\n gcloud init\n ```\n\n\u003cbr /\u003e\n\n| **Note:** When you enable the Dataproc API, the Dataproc Control API is also enabled. Disabling the Dataproc API doesn't disable the Dataproc Control API. You must separately disable the Dataproc Control API.\n\n**Do you Need Credentials?** You need credentials only if\nyou plan to directly call Dataproc APIs from your application or from\na browser. If you plan on using the Google Cloud console or the\n[Google Cloud CLI](/sdk/gcloud/reference/dataproc) to\ncreate and manage clusters and to submit jobs, you only need to be logged in\nto the SDK with the `gcloud init` command.\n\nOptional: Set up a VM\n\nIf you plan to run [gcloud CLI](/sdk/docs) from a\nCompute Engine virtual machine (VM) instance, the VM must be set up\nto access Google Cloud services.\n\nTo test whether your VM is set up correctly, run\n`gcloud compute instances describe `\u003cvar translate=\"no\"\u003eYOUR_VM_INSTANCE_NAME\u003c/var\u003e\nfrom the command line. A service account must be listed that includes the\n`https://www.googleapis.com/auth/cloud-platform` scope. For more information\non setting up a VM, see\n[Create a VM that uses a user-managed service account](/compute/docs/access/create-enable-service-accounts-for-instances).\n| **Use Cloud Shell to run\n| gcloud CLI commands.** As an alternative to setting up your own VM to run SDK commands, open a [Cloud Shell](/shell/docs/quickstart) session to automatically provision a VM with the necessary scopes, and then run gcloud CLI commands from Cloud Shell.\n\n*** ** * ** ***\n\n[Next Step: Create a Cluster](/dataproc/docs/guides/create-cluster)"]]