创建目录

GCS

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

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

在 Google Cloud Storage (GCS) 上创建目录

对于 polaris catalogs create 命令,有几个仅适用于 gcs 的选项。

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

示例

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

评论

登录后参与评论

正在加载评论…