尝试使用日志记录Python SDK创建新接收器时出现以下错误:
google.gax.errors.RetryError: RetryError(Exception occurred in retry method that was not classified as transient, caused by <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, The destination project must be the same as the sink's project. Use uniqueWriterIdentity=true to allow cross project exports.)>)
我完全理解为什么会出现这个错误(我正在创建一个sink cross项目),但是我看不到在哪里可以设置uniqueWriterIdentity
,如here所述。在
我错过了什么?在
sink = logging.Client(project=project_id).sink(
'name',
'resource.type:*',
'bigquery.googleapis.com/projects/..')
sink.create()
已为Logging: Unique Writer Identity #4595添加了写入程序标识
相关问题 更多 >
编程相关推荐