[ 
https://issues.apache.org/jira/browse/HDFS-17533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848006#comment-17848006
 ] 

Simbarashe Dzinamarira edited comment on HDFS-17533 at 5/20/24 11:43 PM:
-------------------------------------------------------------------------

[~slfan1989] the following PR updated derby from 10.14.2.0 to 10.17.1.0.

[https://github.com/apache/hadoop/pull/6816]

However 10.17.1.0 requires a higher java version.

 

Any recommendation on how to resolve this? I assume downgrading is not an 
option.


was (Author: simbadzina):
[~slfan1989] the following PR updated derby from 10.14.2.0 to 10.17.1.0.

[https://github.com/apache/hadoop/pull/6816]

However 10.17.1.0 requires a higher java version.

> RBF: Unit tests that use embedded SQL failing in CI
> ---------------------------------------------------
>
>                 Key: HDFS-17533
>                 URL: https://issues.apache.org/jira/browse/HDFS-17533
>             Project: Hadoop HDFS
>          Issue Type: Test
>            Reporter: Simbarashe Dzinamarira
>            Assignee: Simbarashe Dzinamarira
>            Priority: Major
>
> In the CI runs for RBF the following two tests are failing
> {noformat}
> [ERROR] Failures: 
> [ERROR] 
> org.apache.hadoop.hdfs.server.federation.router.security.token.TestSQLDelegationTokenSecretManagerImpl.null
> [ERROR]   Run 1: TestSQLDelegationTokenSecretManagerImpl Multiple Failures (2 
> failures)
>       java.sql.SQLException: No suitable driver found for 
> jdbc:derby:memory:TokenStore;create=true
>       java.lang.RuntimeException: java.sql.SQLException: No suitable driver 
> found for jdbc:derby:memory:TokenStore;drop=true
> [ERROR]   Run 2: TestSQLDelegationTokenSecretManagerImpl Multiple Failures (2 
> failures)
>       java.sql.SQLException: No suitable driver found for 
> jdbc:derby:memory:TokenStore;create=true
>       java.lang.RuntimeException: java.sql.SQLException: No suitable driver 
> found for jdbc:derby:memory:TokenStore;drop=true
> [ERROR]   Run 3: TestSQLDelegationTokenSecretManagerImpl Multiple Failures (2 
> failures)
>       java.sql.SQLException: No suitable driver found for 
> jdbc:derby:memory:TokenStore;create=true
>       java.lang.RuntimeException: java.sql.SQLException: No suitable driver 
> found for jdbc:derby:memory:TokenStore;drop=true
> [INFO] 
> [ERROR] 
> org.apache.hadoop.hdfs.server.federation.store.driver.TestStateStoreMySQL.null
> [ERROR]   Run 1: TestStateStoreMySQL Multiple Failures (2 failures)
>       java.sql.SQLException: No suitable driver found for 
> jdbc:derby:memory:StateStore;create=true
>       java.lang.RuntimeException: java.sql.SQLException: No suitable driver 
> found for jdbc:derby:memory:StateStore;drop=true
> [ERROR]   Run 2: TestStateStoreMySQL Multiple Failures (2 failures)
>       java.sql.SQLException: No suitable driver found for 
> jdbc:derby:memory:StateStore;create=true
>       java.lang.RuntimeException: java.sql.SQLException: No suitable driver 
> found for jdbc:derby:memory:StateStore;drop=true
> [ERROR]   Run 3: TestStateStoreMySQL Multiple Failures (2 failures)
>       java.sql.SQLException: No suitable driver found for 
> jdbc:derby:memory:StateStore;create=true
>       java.lang.RuntimeException: java.sql.SQLException: No suitable driver 
> found for jdbc:derby:memory:StateStore;drop=true {noformat}
> [https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6804/5/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs-rbf.txt]
>  
> I believe the fix is first registering the driver: 
> [https://dev.mysql.com/doc/connector-j/en/connector-j-usagenotes-connect-drivermanager.html]
> [https://stackoverflow.com/questions/22384710/java-sql-sqlexception-no-suitable-driver-found-for-jdbcmysql-localhost3306]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to