[
https://issues.apache.org/jira/browse/IMPALA-14546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045299#comment-18045299
]
ASF subversion and git services commented on IMPALA-14546:
----------------------------------------------------------
Commit aa4f19219cf26bc4c7f5900100af65baa5c33074 in impala's branch
refs/heads/master from stiga-huang
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=aa4f19219 ]
IMPALA-14546: Fix jdbc driver urls in test_postgres_jdbc_tables
TestPostgresJdbcTables.test_postgres_jdbc_tables uses hardcoded paths
for JDBC driver URLs:
"/test-warehouse/data-sources/jdbc-drivers/postgresql-jdbc.jar".
This doesn't work correctly when running on Ozone where we need the
prefix of "ofs://localhost:9862/impala".
This patch fixes the issue by constructing the driver URL with
FILESYSTEM_PREFIX which is "ofs://localhost:9862/impala" on Ozone.
See more in bin/impala-config.sh about how it's set for different
filesystems.
Tests:
- Ran the test on Ozone.
Change-Id: Ie0c4368b3262d4dcb9e1c05475506411be2e2ef5
Reviewed-on: http://gerrit.cloudera.org:8080/23787
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Riza Suminto <[email protected]>
> TestPostgresJdbcTables.test_postgres_jdbc_tables fails on Ozone due to
> missing prefix
> -------------------------------------------------------------------------------------
>
> Key: IMPALA-14546
> URL: https://issues.apache.org/jira/browse/IMPALA-14546
> Project: IMPALA
> Issue Type: Bug
> Components: Test
> Affects Versions: Impala 5.0.0
> Reporter: Joe McDonnell
> Assignee: Quanlong Huang
> Priority: Blocker
> Labels: broken-build
>
> custom_cluster/test_ext_data_sources.py's
> TestPostgresJdbcTables.test_postgres_jdbc_tables is consistently failing as
> it is unable to get the postgres JDBC driver:
> {noformat}
> E InternalException: Data source DataSource{name=impalajdbcdatasource,
> location=, className=org.apache.impala.extdatasource.jdbc.JdbcDataSource,
> apiVersion=V1} returned an error from prepare(): Failed to retrieve total
> number of records: Failed to copy JDBC driver from
> '/test-warehouse/data-sources/jdbc-drivers/postgresql-jdbc.jar' to local
> filesystem.{noformat}
> For tests to work properly on Ozone, they need to use
> WAREHOUSE_LOCATION_PREFIX or FILESYSTEM_PREFIX when referring to filesystem
> locations. The code that loads the Postgres JDBC driver into Ozone uses the
> prefix, but this test doesn't. The test needs to be updated to use the prefix.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]