Can I use third party libraries with Cloud Dataflo

2019-08-10 23:56发布

Does Cloud Dataflow allows you to use it with third party library jar files? How about non-Java libraries?

Kaz

1条回答
乱世女痞
2楼-- · 2019-08-11 00:39

Yes you can use third party library files just fine. By default when you run your Dataflow main program to submit your job, Dataflow will analyze your classpath and upload any jars it sees and add them to the class path of the workers.

If you need more controlthen you can use the command line option --filesToStage to specify additional files to stage on the workers.

Another common technique is building a single bundled jar which contains all your dependencies. One way to build a bundled jar is to use a maven plugin like shade.

查看更多
登录 后发表回答