Reply
New Contributor
Posts: 1
Registered: ‎12-27-2017

Create table using Impala-Kudu fails

Hi,

    I have installed the impala_kudu package along with a separate kudu installation. From the impala-shell when I try to create a table in kudu using : 

 

CREATE TABLE test_table (id INT , name STRING)
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'test_table',
'kudu.master_addresses' = "<master>:7051",
'kudu.key_columns' = 'id');

 

where master" is the rpc host retrieved from the kudu UI, it fails with the following error :

ERROR:
ImpalaRuntimeException: Error creating Kudu table
CAUSED BY: NonRecoverableException: Too many attempts: KuduRpc(method=ListTables, tablet=null, attempt=6, DeadlineTracker(timeout=10000, elapsed=7687), Deferred@1998264283(state=PENDING, result=null, callback=(continuation of Deferred@1089030192 after retry RPC after error@1185318096) -> (continuation of Deferred@952010135 after retry RPC after error@389343380) -> (continuation of Deferred@488016522 after retry RPC after error@1877220860) -> (continuation of Deferred@599437226 after retry RPC after error@326800129) -> (continuation of Deferred@974199102 after retry RPC after error@1976957053), errback=(continuation of Deferred@1089030192 after retry RPC after error@1185318096) -> (continuation of Deferred@952010135 after retry RPC after error@389343380) -> (continuation of Deferred@488016522 after retry RPC after error@1877220860) -> (continuation of Deferred@599437226 after retry RPC after error@326800129) -> (continuation of Deferred@974199102 after retry RPC after error@1976957053)))
CAUSED BY: NoLeaderMasterFoundException: 

Exceptions received: org.kududb.client.ConnectionResetException

 

I even substituted 'kudu_master_addresses' with values like localhost:7051 and the IP of the machine but it gave the same exception every time.

 

In addition, the kudu logs show another error that reads "Failed RPC Negotiation. Negotiation complete: Network error: Server connection negotiation failed."

 

Could someone please help with notifying me of what could be going wrong.

 

Regards,

Praneetha

Cloudera Employee
Posts: 761
Registered: ‎03-23-2015

Re: Create table using Impala-Kudu fails

This sounds like Kudu issue to me, that no leaders were found.

I suggest you to post another thread under Kudu topic to get better help.
Highlighted
Cloudera Employee
Posts: 30
Registered: ‎11-12-2013

Re: Create table using Impala-Kudu fails

This error message suggests that the impalad you're using via impala-shell can't communicate with the Kudu master. Double check that the Kudu service is up and running, and that you can connect to the master from that impalad's machine.

 

That said, what version of CDH are you using? impala-kudu is very old at this point; if you're using CDH 5.10 or later you should use the regular Impala packages that are part of CDH.