Dataflow JAVA SDK:以代码为输入,后台处理 [英] Dataflow JAVA SDK : Take the code as an input, process at the backed

查看:13
本文介绍了Dataflow JAVA SDK:以代码为输入,后台处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请支持我理解以下场景的实现.

Please support me to understand the implementation of following scenario.

假设用户在前端的文本框中输入使用数据流SDK命令编写的代码.
我们需要获取该代码(假设是一个字符串)并在后端执行.
数据流 SDK 是否提供了像执行管理器这样的工具来做这样的事情?
此外,如果您能提供一些熟悉此类实现的资源,我们将不胜感激.

Suppose the user types the code written using data flow SDK commands in a text box at the front end.
We need to get that code (let's say as a string) and execute at the back end.
Does Data flow SDK provide a facility like a execution manager, to do such a thing?
Also some resources to get familiar with such an implementation would be much appreciated.

推荐答案

Dataflow 不支持您的问题中描述的用户代码动态评估类型.为了使用 Java SDK 运行 Dataflow 作业,用户代码在客户端编译,打包成 .jar 文件,然后分发到工作机器.

Dataflow does not support the kind of dynamic evaluation of user code described in your question. In order to run a Dataflow job using the Java SDK, user code is compiled at the client, packaged into a .jar file, and distributed to the worker machines.

这篇关于Dataflow JAVA SDK:以代码为输入,后台处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆