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

ASF subversion and git services commented on IMPALA-12470:
----------------------------------------------------------

Commit 4ed6d765edfe1877b23b26e4196fd6d6d249006e in impala's branch 
refs/heads/master from gaurav1086
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=4ed6d765e ]

IMPALA-12470 (PART-2): delete temporary file in
/tmp after class loaded

This patch fixes the bug added in the previous patch for IMPALA-12470.
It adds the prefix "file://" to the unix standard path string to
create the corresponding valid hadoop.fs.Path object. For example:
"/tmp" is converted to "file:///tmp".

Testing:
1. Deleted all the jar files in the /tmp directory.
2. Ran the local jdbc ext data sources tests:
  - impala-py.test tests/query_test/test_ext_data_sources.py
  - impala-py.test tests/custom_cluster/test_ext_data_sources.py
3. Upon completion of the tests successfully, Verified that there were
   no .jar files in the /tmp directory.

Change-Id: Iab7cc66383bc62f209987dd3fb42fc3fc6604726
Reviewed-on: http://gerrit.cloudera.org:8080/20654
Reviewed-by: Wenzhe Zhou <[email protected]>
Tested-by: Wenzhe Zhou <[email protected]>


> Support different schemes for jdbc driver url when creating external jdbc 
> table
> -------------------------------------------------------------------------------
>
>                 Key: IMPALA-12470
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12470
>             Project: IMPALA
>          Issue Type: Sub-task
>          Components: Frontend
>            Reporter: Wenzhe Zhou
>            Assignee: gaurav singh
>            Priority: Major
>             Fix For: Impala 4.4.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> jdbc driver url is specified as table property 'driver.url' when creating a 
> external jdbc table, like the sample below:
> {code:java}
> CREATE TABLE test_postgres (
>  id INT,
>  string_col STRING)
> PRODUCED BY DATA SOURCE JdbcDataSource(
> '{"database.type":"POSTGRES",
> "jdbc.url":"jdbc:postgresql://localhost:5432/functional",
> "jdbc.driver":"org.postgresql.Driver",
> "driver.url":"hdfs://localhost:20500/test-warehouse/data-sources/jdbc-driver/postgresql-jdbc.jar",
> "dbcp.username":"hiveuser",
> "dbcp.password":"password",
> "table":"alltypes"}');
> {code}
> In the initial patch, we only support to download the driver jar files from 
> hdfs.  We need to support different storage type, like 'file://', 's3a://', 
> etc.   



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

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

Reply via email to