GitHub user wangyum opened a pull request:

    https://github.com/apache/spark/pull/20944

    [SPARK-23831][SQL] Add org.apache.derby to IsolatedClientLoader

    ## What changes were proposed in this pull request?
    
    Add `org.apache.derby` to `IsolatedClientLoader`, otherwise it may throw an 
exception:
    ```
    [info] Cause: java.sql.SQLException: Failed to start database 
'metastore_db' with class loader 
org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@2439ab23, see the 
next exception for details.
    [info] at 
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
    [info] at 
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
    [info] at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
    [info] at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown 
Source)
    [info] at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
    [info] at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source)
    ```
    
    How to reproduce:
    ```bash
    
    sed 's/HiveExternalCatalogSuite/HiveExternalCatalog2Suite/g' 
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogSuite.scala
 > 
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalog2Suite.scala
    
    build/sbt -Phive "hive/test-only *.HiveExternalCatalogSuite 
*.HiveExternalCatalog2Suite"
    ```
    
    ## How was this patch tested?
    
    manual tests

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wangyum/spark SPARK-23831

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/20944.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #20944
    
----
commit 7d5cc71e4753f26fed4563a0eef27aa9de173d57
Author: Yuming Wang <yumwang@...>
Date:   2018-03-30T10:41:42Z

    Add org.apache.derby to IsolatedClientLoader

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to