Creating a Catalog

GCS

师成师成· 更新于 2026-09-29· 阅读 2 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Creating a catalog on Google Cloud Storage (GCS)

For the polaris catalogs create command there are few gcs only options

--storage-type gcs
--service-account  (Only for GCS) The service account to use when connecting to GCS

example

CLIENT_ID=root \
CLIENT_SECRET=s3cr3t \
DEFAULT_BASE_LOCATION=gs://my-ml-bucket/predictions/  \
SERVICE_ACCOUNT=serviceAccount:my-service-account@my-project.iam.gserviceaccount.com \
polaris \
  --client-id ${CLIENT_ID} \
  --client-secret ${CLIENT_SECRET} \
  catalogs \
  create \
  --storage-type gcs \
  --service-account ${SERVICE_ACCOUNT} \
  --default-base-location ${DEFAULT_BASE_LOCATION} \
  my_gcs_catalog

评论

登录后参与评论

正在加载评论…