์ด ํ์ด์ง์์๋ ๋ค์ํ ์ค๋ฅ ์๋๋ฆฌ์ค์ ์ค๋ฅ ํด๊ฒฐ์ ์ํ ๋ฌธ์ ํด๊ฒฐ ๋จ๊ณ์ ๋ํด ์ค๋ช ํฉ๋๋ค.
์ฐ๊ฒฐ ๋ฐ ๋คํธ์ํน ์ค๋ฅ ์๋๋ฆฌ์ค
์ฐ๊ฒฐ ๋๋ ๋คํธ์ํน ๋ฌธ์ ๊ฐ ์๋น์ค์ ๋ฐ์ํ๋ ๊ฒฝ์ฐ ๋ค์ ์น์ ์ ์๋๋ฆฌ์ค ์ค ํ๋๊ฐ ๋ฌธ์ ์ ์์ธ์ธ์ง ํ์ธํฉ๋๋ค.
VPC ํผ์ด๋ง์ ์ ํํ๋ ์ ์ฝ์กฐ๊ฑด์ผ๋ก ์ธํด ์๋น์ค ์์ฑ์ด ์คํจํจ
VPC ํผ์ด๋ง ์ ํ์ ์ํด org-policy ์ ์ฝ์กฐ๊ฑด์ ์ค์ ํ์ง ๋ง์ธ์. constraints/compute.restrictVpcPeering
์ ์ง์ ํ๋ฉด INVALID_ARGUMENT
์ค๋ฅ๊ฐ ๋ฐ์ํ์ฌ ์์ฑ ์์ฒญ์ด ์คํจํฉ๋๋ค. ์ ์ฝ์กฐ๊ฑด์ ์ค์ ํด์ผ ํ๋ฉด ๋ค์ ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ under:folders/270204312590
์ ํ์ฉํฉ๋๋ค.
gcloud resource-manager org-policies allow compute.restrictVpcPeering under:folders/270204312590 --organization ORGANIZATION_ID
์์ธํ ๋ด์ฉ์ ์กฐ์ง ์ ์ฑ ์ ์ฝ์กฐ๊ฑด์ ์ฐธ์กฐํ์ธ์.
์๋น์ค ๊ณ์ ์ด ์กด์ฌํ์ง ์์ ๊ฒฝ์ฐ ํ๋ก์ ํธ ๊ฐ ๋ฐฐํฌ๊ฐ ์คํจํจ
์๋น์ค๊ฐ ์ํ ํ๋ก์ ํธ๊ฐ ์๋ ๋ค๋ฅธ ํ๋ก์ ํธ์ ์ํ ๋คํธ์ํฌ์์ ์ก์ธ์คํ ์ ์๋ Dataproc Metastore ์๋น์ค๋ฅผ ๋ง๋ค๋ ค๋ฉด ์๋น์ค ํ๋ก์ ํธ์ Dataproc Metastore ์๋น์ค ์์ด์ ํธ(service-SERVICE_PROJECT_NUMBER@gcp-sa-metastore.iam.gserviceaccount.com
)์ roles/metastore.serviceAgent
๋ฅผ ๋ถ์ฌํด์ผ ํฉ๋๋ค.
gcloud projects add-iam-policy-binding NETWORK_PROJECT_ID \
--role "roles/metastore.serviceAgent" \
--member "serviceAccount:service-SERVICE_PROJECT_NUMBER@gcp-sa-metastore.iam.gserviceaccount.com"
์์ธํ ๋ด์ฉ์ ๊ต์ฐจ ํ๋ก์ ํธ ๋ฐฐํฌ ์ค์ ์ ์ฐธ์กฐํ์ธ์.
๋ฉํฐ ๋ฆฌ์ Dataproc Metastore ์๋น์ค๊ฐ ์์ฑ๋์ง ์์
๋ฉํฐ ๋ฆฌ์ Dataproc Metastore ์๋น์ค๋ฅผ ๋ง๋ค ๋ ๋ค์ ์ค๋ฅ๊ฐ ํ์๋ ์ ์์ต๋๋ค.
The Dataproc Service Agent does not have permission to GET Dataproc Metastore service
'projects/<dpmsproject>/locations/nam7/services/<service>'. If using a service from the
cluster's project, please ensure the service agent has the Cloud IAM role
'roles/dataproc.serviceAgent'. Please see
https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-
principals#service_agent_control_plane_identity for information on the Dataproc Service
Agent, and https://cloud.google.com/iam/docs/granting-changing-revoking-access#granting-
gcloud-manual for information on granting access.
์ด ์ค๋ฅ๋ Dataproc ํด๋ฌ์คํฐ๊ฐ Dataproc Metastore์ ๋ค๋ฅธ ํ๋ก์ ํธ์ ์์ง๋ง ํ๋ก์ ํธ์ ์ฌ๋ฐ๋ฅธ ๊ถํ์ ๋ถ์ฌํ์ง ์์ ๊ฒฝ์ฐ์ ๋ฐ์ํฉ๋๋ค.
์ด ์ค๋ฅ๋ฅผ ํด๊ฒฐํ๋ ค๋ฉด Dataproc Metastore ํ๋ก์ ํธ์ ํฌํจ๋ Dataproc ์๋น์ค ๊ณ์ ์ metastore.services.get
๊ถํ์ ๋ถ์ฌํด์ผ ํฉ๋๋ค.
๋คํธ์ํฌ ์ฐ๊ฒฐ์ ๋น๊ณต๊ฐ IP ํ์
Dataproc Metastore์์๋ ๋น๊ณต๊ฐ IP๋ง ์ฌ์ฉ๋๋ฏ๋ก ๊ณต๊ฐ IP๊ฐ ๋ ธ์ถ๋์ง ์์ต๋๋ค. ์ฆ, ์ ๊ณต๋ Virtual Private Cloud(VPC) ๋คํธ์ํฌ ๋๋ ์จํ๋ ๋ฏธ์ค(Cloud VPN ๋๋ Cloud Interconnect๋ฅผ ํตํด ์ฐ๊ฒฐ๋จ)์ VM๋ง Dataproc Metastore ์๋น์ค์ ์ก์ธ์คํ ์ ์์ต๋๋ค.
์์ธํ ๋ด์ฉ์ ์๋น์ค ์ก์ธ์ค๋ฅผ ์ฐธ์กฐํ์ธ์.
Kerberos์ ํ์ํ ์ธ๊ทธ๋ ์ค ํ์ฉ ๋ฐฉํ๋ฒฝ ๊ท์น
Kerberos๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด Dataproc Metastore์์ ํ๋ก์ ํธ ๋คํธ์ํฌ์ ํธ์คํธ์ ๋ํ ์ฐ๊ฒฐ์ ์์ํด์ผ ํฉ๋๋ค. Dataproc Metastore IP๊ฐ ํฌํจ๋ /17
IP ๋ธ๋ก์์ ๋ชจ๋ ํฌํธ์ TCP ๋ฐ UDP ์ธ๊ทธ๋ ์ค๋ฅผ ํ์ฉํ๋ ๋ฐฉํ๋ฒฝ ๊ท์น์ ๋ง๋ค์ด์ผ ํฉ๋๋ค.
์์ธํ ๋ด์ฉ์ KDC์ ๋ํ ๋ฐฉํ๋ฒฝ ๊ท์น๊ณผ ์๋น์ค์ ๋ํ ๋ฐฉํ๋ฒฝ ๊ท์น์ ์ฐธ์กฐํ์ธ์.
๊ณต์ VPC ๋คํธ์ํฌ์ ํ๋ก๋น์ ๋๋ ๋ฆฌ์์ค๋ก ์ฐ๊ฒฐ ์ค๋ฅ ๋ฐ์
Dataproc Metastore์ธ ๊ฒฝ์ฐ. ์ด ๊ฒฝ์ฐ Dataproc Metastore๋ ์๋น์ค ์์ฑ์ ์ํ RFC 1918 ๋ฒ์ ๋ฐ์ ์๋ ๋น๊ณต๊ฐ IP ์ฃผ์ ๋ฒ์๋ฅผ ์์ฝํ๋ ค๊ณ ์๋ํฉ๋๋ค. ์ง์๋๋ RFC ์ด์ธ์ 1918 ๋น๊ณต๊ฐ ๋ฒ์ ๋ชฉ๋ก์ VPC ๋คํธ์ํฌ ๋ฌธ์์์ ์ ํจํ ๋ฒ์๋ฅผ ์ฐธ์กฐํ์ธ์.} ์๋น์ค๊ฐ ๋ค๋ฅธ ํ๋ก์ ํธ์ ์ํ ๋คํธ์ํฌ๋ฅผ ์ฌ์ฉํ๊ณ Compute Engine์ด ํด๋น ์๋น์ค ๊ฒฝ๊ณ๋ก ๋ณดํธ๋๋ฉด ๋ฉํ์คํ ์ด ํ๋ก์ ํธ ๋ฐ ๋คํธ์ํฌ ํ๋ก์ ํธ๊ฐ ๋์ผํ ๊ฒฝ๊ณ์ ์์ด์ผ ํฉ๋๋ค.
๊ธฐ์กด Dataproc Metastore ํ๋ก์ ํธ๋ฅผ ๊ฒฝ๊ณ์ ์ถ๊ฐํ๋ ค๋ฉด ์๋น์ค ๊ฒฝ๊ณ ์ ๋ฐ์ดํธ์ ์๋ด๋ฅผ ๋ฐ๋ฅด์ธ์.
์์ธํ ๋ด์ฉ์ Dataproc Metastore๋ก VPC ์๋น์ค ์ ์ด๋ฅผ ์ฐธ์กฐํ์ธ์.
ํ ๋น๋ IP ๋ฒ์๊ฐ ์์ง๋จ
์ ๊ณต๋ VPC ๋คํธ์ํฌ์์ Dataproc Metastore ์๋น์ค์ ํ์ํ ์ฌ์ฉ ๊ฐ๋ฅํ RFC 1918 ์ฃผ์๊ฐ ๋ถ์กฑํ ์๋ ์์ต๋๋ค. ์ด ๊ฒฝ์ฐ Dataproc Metastore๋ ์๋น์ค ์์ฑ์ ์ํ RFC 1918 ๋ฒ์ ๋ฐ์ ์๋ ๋น๊ณต๊ฐ IP ์ฃผ์ ๋ฒ์๋ฅผ ์์ฝํ๋ ค๊ณ ์๋ํฉ๋๋ค. ์ง์๋๋ RFC ์ด์ธ์ 1918 ๋น๊ณต๊ฐ ๋ฒ์ ๋ชฉ๋ก์ VPC ๋คํธ์ํฌ ๋ฌธ์์์ ์ ํจํ ๋ฒ์๋ฅผ ์ฐธ์กฐํ์ธ์.
Dataproc Metastore์ ์ฌ์ฉ๋๋ RFC 1918 ์ด์ธ์ ๋น๊ณต๊ฐ IP ์ฃผ์๋ ์ ๊ณต๋ VPC ๋คํธ์ํฌ์ ์ฐ๊ฒฐ๋ ์จํ๋ ๋ฏธ์ค ๋คํธ์ํฌ์ ๋ฒ์์ ์ถฉ๋ํ ์ ์์ต๋๋ค. Dataproc Metastore์์ ์์ฝํ RFC 1918 ๋ฐ RFC 1918 ์ด์ธ์ ๋น๊ณต๊ฐ IP ์ฃผ์ ๋ชฉ๋ก์ ํ์ธํ๋ ค๋ฉด ๋ค์ ์๋ด๋ฅผ ๋ฐ๋ฅด์ธ์.
gcloud compute addresses list \
--project NETWORK_PROJECT_ID \
--filter="purpose:VPC_PEERING AND name ~ cluster|resourcegroup"
์ถฉ๋์ด ํ์ธ๋ ์ํ์์ ์จํ๋ ๋ฏธ์ค ๋คํธ์ํฌ๋ฅผ ์ฌ๊ตฌ์ฑํ์ฌ ์ํํ ์ ์๋ ๊ฒฝ์ฐ ๋ฌธ์ ๊ฐ ๋๋ Dataproc Metastore ์๋น์ค๋ฅผ ์ญ์ ํ๊ณ 2์๊ฐ ํ์ ๋ค์ ๋ง๋ญ๋๋ค.
์์ธํ ๋ด์ฉ์ IP ์ฃผ์ ๋ฒ์ ์์ง์ ์ฐธ์กฐํ์ธ์.
์์ ์ ํ ์๊ฐ ์ค๋ฅ ์๋๋ฆฌ์ค
๋ค์ ์ค๋ฅ ์๋๋ฆฌ์ค์์๋ ์๋ตํ์ง ์๋ ์๋น์ค ๋๋ ์์ ์ ํ ์๊ฐ์ด ๋ฐ์ํฉ๋๋ค.
๊ฐ์ฌ ๋ก๊ทธ๋ฅผ ์ฌ์ฉํ์ฌ ์์ ์ ํ ์๊ฐ ๋ฌธ์ ํด๊ฒฐ
์๋น์ค ์์ ์ ํ ์๊ฐ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ค๋ฉด Google Cloud ์ฝ์์์ ๋ก๊ทธ ํ์๊ธฐ๋ฅผ ์ฌ์ฉํ์ฌ ํด๋ผ์ฐ๋ ํ๋ก์ ํธ์ ๋ํ ๊ฐ์ฌ ๋ก๊ทธ ํญ๋ชฉ์ ๊ฒ์ํฉ๋๋ค.
์ฟผ๋ฆฌ ๋น๋ ์ฐฝ์์ ๊ฐ์ฌ๋ฅผ ๋ฐ์ ๋ฆฌ์์ค ๋๋ audited_resource
๋ฅผ Google Cloud ๋ฆฌ์์ค ์ ํ์ผ๋ก ์ ํํ๊ณ Dataproc Metastore ๋๋ metastore.googleapis.com
์ ์๋น์ค๋ก ์ ํํฉ๋๋ค. ๋ฉ์๋ ์ ํ์ ์ ํ์ฌํญ์
๋๋ค.
์์ธํ ๋ด์ฉ์ ๋ก๊ทธ ๋ณด๊ธฐ๋ฅผ ์ฐธ์กฐํ์ธ์.
์ค๋ฅ ์๋๋ฆฌ์ค ๊ฐ์ ธ์ค๊ธฐ ๋ฐ ๋ด๋ณด๋ด๊ธฐ
์ด ์น์ ์์๋ ์ผ๋ฐ์ ์ธ Dataproc Metastore ๊ฐ์ ธ์ค๊ธฐ ๋ฐ ๋ด๋ณด๋ด๊ธฐ ๋ฌธ์ ์ ๋ํด ๊ฐ๋ตํ๊ฒ ์ค๋ช ํฉ๋๋ค.
Hive ๋ฒ์ ์ด ์ผ์นํ์ง ์๊ธฐ ๋๋ฌธ์ ๊ฐ์ ธ์ค๊ธฐ๊ฐ ์คํจํจ
๋ฉํ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ฌ ๋๋ Hive ๋ฉํ์คํ ์ด์ Dataproc Metastore ๋ฒ์ ์ด ํธํ ๊ฐ๋ฅํด์ผ ํฉ๋๋ค. ๋ ํญ๋ชฉ์ด ์ผ์นํ์ง ์์ผ๋ฉด ๊ฐ์ ธ์ค๊ธฐ๊ฐ ์คํจํ ์ ์์ต๋๋ค.
ํธํ์ฑ์ ๋ํ ์์ธํ ๋ด์ฉ์ ๋ฒ์ ์ ์ฑ ์ ์ฐธ์กฐํ์ธ์.
Cloud Logging์์ ์ด ์ค๋ฅ๊ฐ ๋ฐ์ํ๋์ง ํ์ธํ ์ ์์ต๋๋ค. ๋ค์ ๋ฉ์์ง๋ ์ด ์ค๋ฅ์ ์์์ ๋๋ค.
Metastore schema version is not compatible. Hive Version: 3.1.0, Database Schema Version: 2.3.0
Hive ํ ์ด๋ธ ํ์ผ์ด ๋๋ฝ๋์ด ๊ฐ์ ธ์ค๊ธฐ๊ฐ ์คํจํจ
Avro์ ๋ํด ๊ฐ์ ธ์ค๊ธฐ๋ฅผ ์ค๋นํ ๋๋ ํ ์ด๋ธ์ด ๋น์ด ์๋๋ผ๋ ๊ฐ Hive ํ ์ด๋ธ์ ๋ํด ํ์ผ์ด ์์ด์ผ ํฉ๋๋ค. ๊ทธ๋ ์ง ์์ผ๋ฉด ๊ฐ์ ธ์ค๊ธฐ๊ฐ ์คํจํฉ๋๋ค.
Dataproc Metastore Toolkit์ ์ฐธ์กฐ๋ก ์ฌ์ฉํ์ฌ ์ฌ๋ฐ๋ฅธ Hive ๋ฉํ๋ฐ์ดํฐ ์คํค๋ง๋ฅผ ํ์ธํ ์ ์์ต๋๋ค.
์๋น์ค ์์ด์ ํธ ๋๋ ์ฌ์ฉ์์๊ฒ ํ์ํ ๊ถํ์ด ์์
Dataproc Metastore ์๋น์ค ์์ด์ ํธ(service-CUSTOMER_PROJECT_NUMBER@gcp-sa-metastore.iam.gserviceaccount.com
)์ ๋ฉํ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ค๋ ์ฌ์ฉ์๋ ๊ฐ์ ธ์ค๊ธฐ์ ์ฌ์ฉ๋ Cloud Storage ๋ฒํท์ ๋ํ ๋ค์ ์ฝ๊ธฐ ๊ถํ์ด ์์ด์ผ ํฉ๋๋ค.
MySQL์ ๊ฒฝ์ฐ ๊ฐ์ ธ์ค๊ธฐ์ ์ฌ์ฉ๋ Cloud Storage ๊ฐ์ฒด(SQL ๋คํ ํ์ผ)์ ๋ํ
storage.objects.get
๊ถํ์ด ์์ด์ผ ํฉ๋๋ค.Avro์ ๊ฒฝ์ฐ ๊ฐ์ ธ์ค๊ธฐ์ ์ฌ์ฉ๋ Cloud Storage ๋ฒํท์ ๋ํ
storage.objects.get
๊ถํ์ด ์์ด์ผ ํฉ๋๋ค.
๋ด๋ณด๋ด๊ธฐ์ ๊ฒฝ์ฐ Dataproc Metastore ์๋น์ค ์์ด์ ํธ(service-CUSTOMER_PROJECT_NUMBER@gcp-sa-metastore.iam.gserviceaccount.com
) ๋ฐ ๋ด๋ณด๋ด๊ธฐ๋ฅผ ๋ง๋๋ ์ฌ์ฉ์์๊ฒ ํด๋น ๋ฒํท์ ๋ํ storage.objects.create
๊ถํ์ด ์์ด์ผ ํฉ๋๋ค.
๋ฐ์ดํฐ๋ฒ ์ด์ค ํ์ผ์ด ๋๋ฌด ์ปค์ ์์ ์ด ์คํจํจ
๋ฐ์ดํฐ๋ฒ ์ด์ค ํ์ผ์ด ๋๋ฌด ํฌ๋ฉด ๊ฐ์ ธ์ค๊ธฐ ๋๋ ๋ด๋ณด๋ด๊ธฐ ํ๋ก์ธ์ค๋ฅผ ์๋ฃํ๋ ๋ฐ ๊ฑธ๋ฆฌ๋ ์๊ฐ์ด ์์ ์ ํ ์๊ฐ ํ๋๋ฅผ ์ด๊ณผํ ์ ์์ต๋๋ค. 3์๊ฐ์ ์์ ์ ํ ์๊ฐ ํ๋ ๋ด์ ๊ฐ์ ธ์ค๊ธฐ๋ฅผ ์๋ฃํ ์ ์๋ ๊ฒฝ์ฐ ๋ฉํ๋ฐ์ดํฐ๋ฅผ ์ฌ๋ฌ Dataproc Metastore ์ธ์คํด์ค์ ๋ถํ ํ ์ ์์ต๋๋ค.
๋ฐฑ์ ๋ฐ ๋ณต์ ์ค๋ฅ ์๋๋ฆฌ์ค
์ด ์น์ ์์๋ ์ผ๋ฐ์ ์ธ Dataproc Metastore ๋ฐฑ์ ๋ฐ ๋ณต์ ๋ฌธ์ ์ ๋ํด ๊ฐ๋ตํ๊ฒ ์ค๋ช ํฉ๋๋ค.
์๋น์ค์ ์ ๋ฐฑ์ ์ ๋ง๋ค ์ ์์
์๋น์ค์ ์ด๋ฏธ ๋ฐฑ์ ์ด 7๊ฐ ์์ผ๋ฉด ๋จผ์ ๋ฐฑ์ ์ ์๋์ผ๋ก ์ญ์ ํ ํ์ ์ ๋ฐฑ์ ์ ๋ง๋ค์ด์ผ ํฉ๋๋ค. ๋ฐฑ์ /๋ณต์ ํญ์์ ๊ธฐ์กด ๋ฐฑ์ ์ ์ญ์ ํ ์ ์์ต๋๋ค.
์ฌ์ฉ์์๊ฒ ํ์ํ ๊ถํ์ด ์์
๋ฉํ๋ฐ์ดํฐ๋ฅผ ๋ฐฑ์
ํ๋ ค๋ฉด metastore.backups.create
IAM ๊ถํ์ด ํฌํจ๋ IAM ์ญํ ์ ์์ฒญํด์ผ ํฉ๋๋ค.
๋ฉํ๋ฐ์ดํฐ๋ฅผ ๋ณต์ํ๋ ค๋ฉด metastore.services.restore
๋ฐ metastore.backups.use
IAM ๊ถํ์ด ํฌํจ๋ IAM ์ญํ ์ ์์ฒญํด์ผ ํฉ๋๋ค.
์๋น์ค ๋ฉํ๋ฐ์ดํฐ ํ์ผ์ด ๋๋ฌด ํฌ๊ธฐ ๋๋ฌธ์ ์์ ์ด ์คํจํจ
์๋น์ค ๋ฉํ๋ฐ์ดํฐ ํ์ผ์ด ๋๋ฌด ํฌ๋ฉด ๋ฐฑ์ ๋๋ ๋ณต์ ํ๋ก์ธ์ค๋ฅผ ์๋ฃํ๋ ๋ฐ 1์๊ฐ ์ด์ ์์ ์ ํ ์๊ฐ ํ๋๊ฐ ๊ฑธ๋ฆด ์ ์์ต๋๋ค.
Dataproc ํด๋ฌ์คํฐ ์ค๋ฅ ์๋๋ฆฌ์ค
๋ค์ ์น์ ์์๋ ์ผ๋ฐ์ ์ธ Dataproc ๋ฐ ์์ฒด ๊ด๋ฆฌํ ํด๋ฌ์คํฐ ๋ฌธ์ ๋ฅผ ๋๋ต์ ์ผ๋ก ์ค๋ช ํฉ๋๋ค.
๋ฒ์ ๋ถ์ผ์น๋ก ์ธํด Dataproc ํด๋ฌ์คํฐ ์ฐ๊ฒฐ์ด ์คํจํจ
Dataproc ํด๋ฌ์คํฐ๋ฅผ ์ฐ๊ฒฐํ ๋ Dataproc ์ด๋ฏธ์ง์ Dataproc Metastore Hive ๋ฒ์ ์ด ํธํ๋์ด์ผ ํฉ๋๋ค. ๋ค์ ์ด๋ฏธ์ง ๋ฒ์ ๊ด๋ฆฌ ํ์ด์ง์์ Hive ๋ฒ์ ์ด ํธํ๋๋์ง ํ์ธํ์ธ์.
- Dataproc 2.0.x ์ถ์ ๋ฒ์
- Dataproc 1.5.x ์ถ์ ๋ฒ์
- Dataproc 1.4.x ์ถ์ ๋ฒ์
์์ธํ ๋ด์ฉ์ Dataproc ์ด๋ฏธ์ง ๋ฒ์ ๋ชฉ๋ก์ ์ฐธ์กฐํ์ธ์.
์ญํ ๋ถ์กฑ์ผ๋ก ์ธํด Dataproc ํด๋ฌ์คํฐ ์์ฑ์ด ์คํจํจ
Dataproc ํด๋ฌ์คํฐ๋ฅผ ๋ง๋ค ๋ ๋ค์ ์ค๋ฅ ๋ฉ์์ง์ ํจ๊ป ํด๋ฌ์คํฐ ์์ฑ์ด ์คํจํฉ๋๋ค.
gcloud.dataproc.clusters.create) INVALID_ARGUMENT: Default Service Account '**********-compute@developer.gserviceaccount.com' is missing required permissions: [dataproc.agents.create, dataproc.agents.delete, dataproc.agents.get, dataproc.agents.update, dataproc.tasks.lease, dataproc.tasks.listInvalidatedLeases, dataproc.tasks.reportStatus]. Service Accounts must have either 'Dataproc/Dataproc Worker' role or all permissions granted by the role.
์ด๋ Dataproc ํด๋ฌ์คํฐ๋ฅผ ๋ง๋ค๊ณ Dataproc Metastore์ ์ฐ๊ฒฐํ๋ ค๊ณ ํ ๋ ๋ฐ์ํ ์ ์์ต๋๋ค.
์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ค๋ฉด ์๋น์ค ๊ณ์ ์ roles/dataproc.worker
๋ฅผ ๋ถ์ฌํฉ๋๋ค.
๋ค์ ์์์์๋ ๋ช ๊ฐ์ง ์ํ ๊ฐ์ ์ฌ์ฉํ์ฌ ์ด๋ฅผ ์ํํ๋ ๋ฐฉ๋ฒ์ ๋ณด์ฌ์ค๋๋ค.
gcloud projects add-iam-policy-binding my_project \ --member=219315-compute@developer.gserviceaccount.com \ --role=roles/dataproc.worker
์๊ฐ๋ ๋ฌธ์ ๋ก ์ธํด ๋ฉํ์คํ ์ด์ ์ฐ๊ฒฐํ ์ ์์
Hive ํ์ผ์ด The server time zone value 'CDT' is
unrecognized or represents more than one time zone
์ค๋ฅ๋ฅผ ๋ฐํํฉ๋๋ค.
Dataproc์์ ๋ฉํ์คํ ์ด์ ์ฐ๊ฒฐํ ์ ์๋ ๊ฒฝ์ฐ ํ์ฌ ํด๋ฌ์คํฐ๋ฅผ ์ญ์ ํ๊ณ ๋ค์ ์๊ฐ๋ ๋งค๊ฐ๋ณ์๋ฅผ ํฌํจํ๋๋ก gcloud dataproc clusters create
๋ช
๋ น์ด ๋๋ ์๋ํ ๋๊ตฌ๋ฅผ ์
๋ฐ์ดํธํด์ผ ํฉ๋๋ค.
--metadata "hive-metastore-uri=jdbc:mysql://10.207.26.77:3306/hive_metastore?serverTimezone=CST6CDT"
Google Cloud CLI ๋ฌธ์ ํด๊ฒฐ
gcloud CLI ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ ์ ์๊ฑฐ๋ ๋ช ๋ น์ด๊ฐ ๋ฌธ์ํ๋ ๋ฐฉ์๊ณผ ๋ค๋ฅด๊ฒ ์๋ํ๋ ๊ฒฝ์ฐ gcloud CLI๋ฅผ ์ ๋ฐ์ดํธํด ๋ณด์ธ์.
gcloud components update
๋ค์ ๋จ๊ณ
- ์ค๋ฅ๋ฅผ ํด๊ฒฐํ๋ ค๋ฉด ์ค๋ฅ ๋ฉ์์ง๋ฅผ ์ฐธ์กฐํ์ธ์.