impala集成kudu问题,求解决方法。急,在线等!
【现象】
[root@xardc2 ~]# impala-shell
Starting Impala Shell without Kerberos authentication
Connected to xardc2:21000
Server version: impalad version 2.3.0-IMPALA_KUDU-cdh5 RELEASE (build 6b0b0c08de605a907c659f0c0f8bbadae9a40825)
Welcome to the Impala shell. Press TAB twice to see a list of available commands.
Copyright (c) 2012 Cloudera, Inc. All rights reserved.
(Shell build version: Impala Shell v2.3.0-IMPALA_KUDU-cdh5 (6b0b0c0) built on Fri Sep 25 23:16:32 PDT 2015)
[xardc2:21000] > use test_kudu;
Query: use test_kudu
[xardc2:21000] > show tables ;
Query: show tables
+------------+
| name |
+------------+
| test_tab_1 |
| test_tab_2 |
| test_tab_3 |
+------------+
Fetched 3 row(s) in 0.01s
[xardc2:21000] > create table testtable1(
> uuid string,
> number int,
> name string,
> sex string
> )
> TBLPROPERTIES(
> 'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
> 'kudu.table_name' = 'testtable1',
> 'kudu.master_addresses' = 'xardc3:7051',
> 'kudu.key_columns' = 'uuid',
> 'kudu.num_tablet_replicas' = '1',
> 'EXTERNAL' = 'FLASE'
> );
Query: create table testtable1(
uuid string,
number int,
name string,
sex string
)
TBLPROPERTIES(
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
'kudu.table_name' = 'testtable1',
'kudu.master_addresses' = 'xardc3:7051',
'kudu.key_columns' = 'uuid',
'kudu.num_tablet_replicas' = '1',
'EXTERNAL' = 'FLASE'
)
ERROR:
[color=#FF0000]ImpalaRuntimeException: Error creating Kudu table
CAUSED BY: NonRecoverableException: Too many attempts: KuduRpc(method=ListTables, tablet=null, attempt=6, DeadlineTracker(timeout=10000, elapsed=7733), Deferred@1503175714(state=PENDING, result=null, callback=(continuation of Deferred@876601890 after retry RPC after error@1310146810) -> (continuation of Deferred@1487602979 after retry RPC after error@1138649679) -> (continuation of Deferred@1058376536 after retry RPC after error@527392451) -> (continuation of Deferred@1219912788 after retry RPC after error@1047850007) -> (continuation of Deferred@1849162249 after retry RPC after error@486579559), errback=(continuation of Deferred@876601890 after retry RPC after error@1310146810) -> (continuation of Deferred@1487602979 after retry RPC after error@1138649679) -> (continuation of Deferred@1058376536 after retry RPC after error@527392451) -> (continuation of Deferred@1219912788 after retry RPC after error@1047850007) -> (continuation of Deferred@1849162249 after retry RPC after error@486579559)))
CAUSED BY: NoLeaderMasterFoundException: Master config (xardc3:7051) has no leader.. Exceptions received: org.kududb.client.ConnectionResetException: [Peer Kudu Master - xardc3:7051] Connection reset on [id: 0xa78dd118, /172.21.3.65:49900 :> /172.21.3.66:7051]
CAUSED BY: ConnectionResetException: [Peer Kudu Master - xardc3:7051] Connection reset on [id: 0xa78dd118, /172.21.3.65:49900 :> /172.21.3.66:7051][/color]
【日志】
kudu-master:
W1101 14:13:57.961187 25325 negotiation.cc:303] Failed RPC negotiation. Trace:
1101 14:13:57.955840 (+ 0us) reactor.cc:446] Submitting negotiation task for server connection from 172.21.3.65:49900
1101 14:13:57.956031 (+ 191us) server_negotiation.cc:167] Beginning negotiation
1101 14:13:57.956036 (+ 5us) server_negotiation.cc:355] Waiting for connection header
1101 14:13:57.956775 (+ 739us) server_negotiation.cc:363] Connection header received
1101 14:13:57.957462 (+ 687us) server_negotiation.cc:319] Received NEGOTIATE NegotiatePB request
1101 14:13:57.957466 (+ 4us) server_negotiation.cc:404] Received NEGOTIATE request from client
1101 14:13:57.957487 (+ 21us) server_negotiation.cc:331] Sending NEGOTIATE NegotiatePB response
1101 14:13:57.957547 (+ 60us) server_negotiation.cc:188] Negotiated authn=SASL
1101 14:13:57.960893 (+ 3346us) negotiation.cc:294] Negotiation complete: Network error: Server connection negotiation failed: server connection from 172.21.3.65:49900: BlockingRecv error: Recv() got EOF from remote (error 108)
Metrics: {"negotiator.queue_time_us":139,"thread_start_us":123,"threads_started":1}
【补充说明】
kudu是1.4.0版本
impala是2.3.0版本