1. 程式人生 > >impala和kudu使用的小細節

impala和kudu使用的小細節

ans order key nbsp start schema tar hive 語句

七堇年:我們要有最樸素的生活與最遙遠的夢想 。 即使明日天寒地凍,路遠馬亡。 加油!

之前入門的小錯誤總結,建表都會出錯,真的好尷尬

還是要做好筆記

第一個錯誤:

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使用的小細節