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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM