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