使用Composer Dataflow运算符传递包含主要jar文件的类路径jar文件。

huangapple go评论68阅读模式
英文:

Using Composer Dataflow operator to pass classpath jar with main jar

问题

我想使用Composer Dataflow Operator来编排数据流作业。我的Dataflow jar文件需要另外两个无法作为Maven依赖项添加的jar文件。
目前,我是通过以下命令手动运行作业的:

java -cp Mainprocess.jar com.sample.class com.auth.dependency --tmp --staging

当我在Cloud Shell中运行此命令时,PWD中有依赖的jar文件。
是否可以通过Dataflow Operator传递其他的类路径(classpath)jar文件?

英文:

I want to orchestrate a dataflow job using composer dataflow Operator. My dataflow jar needs two additional jar which cannot be added as maven dependency.
Currently, I am running my job manually with below command:

>java -cp Mainprocess.jar com.sample.class com.auth.dependency --tmp --staging

When I am running this in cloud shell I have dependency jar in PWD.
Is it possible to pass the other classpath jars with Dataflow Operator?

答案1

得分: 1

默认情况下,Dataflow会将CLASSPATH中的所有文件分阶段处理。

您可以通过指定filesToStage管道选项来覆盖此行为,并手动指定应该分阶段的jar包集合。

英文:

By default Dataflow stages all files in the CLASSPATH.

You can override this by specifying the filesToStage pipeline option and manually specifying the set of jars that should be staged.

huangapple
  • 本文由 发表于 2020年9月21日 22:49:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/63994731.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定