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

Mai Hai Thanh commented on TAJO-945:
------------------------------------

Hi Hyunsik,
You are right. When I try the new URI "jdbc:tajo://127.0.0.1:26002/default" as 
you mentioned, the JDBC driver works well. However, this is still a (trivial) 
bug because in the class {code}org.apache.tajo.jdbc.TajoConnection{code}, there 
have already been some lines of code to handle the case of missing database 
name (the database name would be set to DEFAULT_DATABASE_NAME). The solution is 
simple and I made a patch file.

> Connecting to Tajo by JDBC driver failed with SQL Exception "Invalid JDBC URI"
> ------------------------------------------------------------------------------
>
>                 Key: TAJO-945
>                 URL: https://issues.apache.org/jira/browse/TAJO-945
>             Project: Tajo
>          Issue Type: Bug
>          Components: JDBC
>            Reporter: Mai Hai Thanh
>            Assignee: Mai Hai Thanh
>            Priority: Trivial
>         Attachments: TAJO-945.patch
>
>
> When a Java program tries to make a connection to Tajo using JDBC driver, as 
> described in Tajo document 
> [http://tajo.apache.org/docs/current/jdbc_driver.html], the program failed 
> with SQL Exception "Invalid JDBC URI".
> bq. Connection conn = 
> DriverManager.getConnection("jdbc:tajo://127.0.0.1:26002");



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to