本文主要是介绍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即可。
这篇关于impala和kudu使用的小细节的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!