You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Ramya (Jira)" <ji...@apache.org> on 2021/03/04 13:24:00 UTC

[jira] [Commented] (IMPALA-9486) Creating a Kudu table via JDBC fails with "IllegalArgumentException"

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

Ramya commented on IMPALA-9486:
-------------------------------

Hello,

 

By changing the JDBC connection string resolved this issue for me.

I tried with AuthMech=0, along with UID (In my case no authentication is needed), it resolved the table owner error.

 

My connection string looks like - 

*jdbc:impala://localhost:21050/default;UseSasl=0;AuthMech=0;UID=impala*

 

Hope this helps!

 

> Creating a Kudu table via JDBC fails with "IllegalArgumentException"
> --------------------------------------------------------------------
>
>                 Key: IMPALA-9486
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9486
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Catalog
>    Affects Versions: Impala 3.2.0
>            Reporter: Grant Henke
>            Assignee: Fang-Yu Rao
>            Priority: Blocker
>
> A Kudu user reported that though creating tables via impala shell or Hue, when using an external tool connected via JDBC the create statement fails with the following:
> {noformat}
> [ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, errorMessage:ImpalaRuntimeException: Error creating Kudu table 'impala::default.foo' CAUSED BY: IllegalArgumentException: table owner must not be null or empty ), Query: …
> {noformat}
>  
> When debugging the issue further it looks like the call to set the owner on the Kudu table should not be called if an owner is not explicitly set:
> [https://github.com/apache/impala/blob/497a17dbdc0669abd47c2360b8ca94de8b54d413/fe/src/main/java/org/apache/impala/service/KuduCatalogOpExecutor.java#L252]
>  
> A possible fix could be to guard the call with _isSetOwner_:
> {code:java}
> if (msTbl.isSetOwner()) { 
>    tableOpts.setOwner(msTbl.getOwner()); 
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org