[
https://issues.apache.org/jira/browse/FLINK-22092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17313853#comment-17313853
]
Rui Li commented on FLINK-22092:
--------------------------------
Put more thoughts into this and I guess it's not a good idea to stop reading
hive-site from classpath because that may break existing use cases. Instead, we
can just prevent HiveConf from reading hive-site from the {{hiveSiteURL}}
variable.
> Prevent HiveCatalog from reading hive-site in classpath
> -------------------------------------------------------
>
> Key: FLINK-22092
> URL: https://issues.apache.org/jira/browse/FLINK-22092
> Project: Flink
> Issue Type: Bug
> Components: Connectors / Hive
> Reporter: Rui Li
> Assignee: Rui Li
> Priority: Major
> Fix For: 1.13.0
>
>
> It turns out that FLINK-19702 is incomplete and {{HiveConf}} may still
> automatically load hive-site from classpath and set {{hiveSiteURL}} variable.
> This can cause problems, e.g. create a HiveCatalog reading hive-site from
> classpath, drop this catalog and also remove the hive-site file, create
> another HiveCatalog with hive-conf-dir pointing to another location, the 2nd
> HiveCatalog cannot be created because {{HiveConf}} has remembered the
> hive-site location from the previous one and complains the file can no longer
> be found.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)