首页 > 其他 > 详细

impala和kudu使用的小细节

时间:2019-04-24 17:54:50      阅读:705      评论:0      收藏:0      [点我收藏+]

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

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

还是要做好笔记

第一个错误:

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即可。

impala和kudu使用的小细节

原文:https://www.cnblogs.com/youchi/p/10763743.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!