Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/6314#issuecomment-104693970
  
    @WangTaoTheTonic Would you mind to help updating the PR description to the 
following? Thanks!
    
    > When initializing `executionHive`, we only masks 
`javax.jdo.option.ConnectionURL` to override metastore location.  However, 
other properties that relates to the actual Hive metastore data source are not 
masked.  For example, when using Spark SQL with a PostgreSQL backed Hive 
metastore, `executionHive` actually tries to use settings read from 
`hive-site.xml`, which talks about PostgreSQL, to connect to the temporary 
Derby metastore, thus causes error.
    >
    > To fix this, we need to mask all metastore data source properties.  
Specifically, according to the code of [Hive `ObjectStore.getDataSourceProps()` 
method] [1], all properties whose name mentions "jdo" and "datanucleus" must be 
included.
    >
    > [1]: 
https://github.com/apache/hive/blob/release-0.13.1/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L288



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to