'How to pass extra files to Flink runner?

I come from Spark background and trying to write Flink 1.12.6 job using Apache Beam 2.35.0 on YARN. However, when writing a job for Phoenix, I am unable to pass hbase-site.xml to Flink runner. This causes incorrect configuration and my Flink job fails to write to Hbase (1.1.2) using phoenix.

I am looking for option like --files in Spark to pass hbase-site.xml. When I include this file in src/main/resources, it seems to work as expected but I wanted to pick up this file from the cluster nodes from location like /etc/hbase/conf directory.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source