Flink 需要 hive conf 目录的本地路径,但是如果我们在 yarn 上提交 flink 作业,如何提供该路径?

Flink requires local path for hive conf directory but how to give that path if we are submitting flink job on yarn?

https://ci.apache.org/projects/flink/flink-docs-stable/dev/table/hive/#connecting-to-hive 根据此 link,Flink 需要本地配置单元 conf 文件夹路径,但我需要在 yarn 提交 Flink 作业,因此 Flink 尝试在 yarn 容器中查找路径例如/mnt/volume4/yarn/nm/usercache/akashkumar.patel/appcache/application_1594626939821_80078/container_e83_1594626939821_80078_01_000002/hdfs:/warehousestore/hive/warehouse/db/hive_conf/hive-site.xml

我们如何处理它?我只需要为 hive 创建一个分区 table.Is 有没有办法为 hive-conf 文件夹提供 hdfs 文件夹位置?

您可以从远程 HDFS 位置下载 hive-site.xml 并在本地放入容器中。