简体   繁体   English

从云数据融合执行云 function

[英]Execute cloud function from cloud data fusion

I'm trying to trigger the cloud function (with trigger type - HTTP) from cloud data fusion pipeline using http sink plugin version 1.2.2.我正在尝试使用 http 接收器插件版本 1.2.2 从云数据融合管道触发云 function(触发类型 - HTTP)。 However I receive the SSL error java.io.EOFException: SSL peer shut down incorrectly但是我收到 SSL 错误java.io.EOFException: SSL peer shut down incorrectly

How do I fix this?我该如何解决? Any help is appreciated, Thanks任何帮助表示赞赏,谢谢

To my understanding, it is currently not possible to execute a Cloud Function from Cloud Data Fusion using the HTTP sink plugin.据我了解,目前无法使用 HTTP 接收器插件从 Cloud Data Fusion 执行 Cloud Function。 This is because you need an OIDC token which must be generated dynamically during runtime, as they have an expiration date.这是因为您需要一个必须在运行时动态生成的 OIDC 令牌,因为它们有到期日期。 This is what is explained in this post .这就是这篇文章中解释的内容。 As explaind in the post, this token should then be added to the header of the request.如帖子中所述,此令牌应添加到请求的 header 中。 To generate this token, you need to run a gcloud auth print-identity-token command, which you cant do using Data Fusion.要生成此令牌,您需要运行gcloud auth print-identity-token命令,而使用数据融合无法做到这一点。

The only workaround I see is to Publish a Pub/Sub message at the end of the pipeline to trigger this Cloud Function (however, dont take this as the solution because I would need more context on the precise use-case).我看到的唯一解决方法是在管道末尾发布 Pub/Sub 消息以触发此 Cloud Function(但是,不要将此作为解决方案,因为我需要更多关于精确用例的上下文)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM