![](/img/trans.png)
[英]Error module not found while running Apache beam job in google cloud
[英]Error while creating Taxonomy in Google Data Catalog using Apache Airflow
專家們,
我正在嘗試使用 Apache Airflow 在 Google 數據目錄中創建分類法。 當我在 Airflow 中觸發作業時,它失敗並出現以下錯誤。
錯誤
> google.api_core.exceptions.PermissionDenied: 403 The caller does not have permission
rpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = "The caller does not have permission"
debug_error_string = "{"created":"@1660850910.057899765","description":"Error received from peer ipv4:173.194.216.95:443","file":"src/core/lib/surface/call.cc","file_line":1074,"grpc_message":"The caller does not have permission","grpc_status":7}"
雖然它聲明 Permission denied,但我可以使用 Apache Airflow 運算符創建標記模板和標記。 如果有人幫助我找出並解決實際問題,我將不勝感激。
代碼
def sample_create_taxonomy():
client = datacatalog_v1.PolicyTagManagerClient()
request = datacatalog_v1.CreateTaxonomyRequest
(
parent='projects/sample-project-name/locations/us-central1',
)
response = client.create_taxonomy(request=request)
print(response)
根據數據目錄文檔,您需要對projects/sample-project-name/locations/us-central1
擁有datacatalog.taxonomies.create
IAM 權限。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.