王昱棋

导航

impala和kudu使用的小细节

七堇年:我们要有最朴素的生活与最遥远的梦想 。 即使明日天寒地冻,路远马亡。   加油!

之前入门的小错误总结,建表都会出错,真的好尴尬

还是要做好笔记

第一个错误:

error:AnalysisException:Table property 'kudu.master_addresses' is required when the impalad startup flat -kudu_master_hosts is not used.
answer:'kudu.master_addresses'='10.10.103.58:7051',指定master地址,端口为7051

第二个错误:

error: ImpalaRuntimeException:Error create Kudu table 'impala::default.kudu_test' 
CASUED BY: NonRecoverableException:Not enough live talbet servers to create a table with the requested replication factor 3. 1 tablet servers are alive.

answer:这里报错要求副本为3,故在建表语句中指定即可。

TBLPROPERLIES(
'kudu.master_addresses'='10.10.103.58:7051',
'kudu.num_tablet_replicase'='1'
)

第三个错误:

error:ImpalaRuntimeException:Error creating Kudu table 'impala::default.kudu_lcpol'
CASUED BY:NonRecoverableException:Got out-of-order key column: name: "polno" type: STRING is_key: true is_nullable: false cfile_block_size:0

answer: 在建表语句中,the primary key must be listed first in the schema

第四个错误:

error:Could not open connection to jdbc:hive2://slave1:21050/:auth=noSasl:connection refused

answer: 这里需要连接impala的server而不是master即可。

posted on 2019-04-24 17:39  王昱棋  阅读(3280)  评论(0编辑  收藏  举报