zoukankan      html  css  js  c++  java
  • 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即可。

  • 相关阅读:
    解析数据库xml格式字段
    Spring切面表达式,hibernate,struts
    常见枚举
    经典冒泡排序,九九乘法表,三角形
    拦截器后台安全验证
    Oracle 将表中多条数据同一字段拼成一列显示
    idea 11 控制台日志乱码
    BigDecimal 分转元,元转分
    currtDownLatch可能会出现的三个问题
    CountDownLatch用法
  • 原文地址:https://www.cnblogs.com/youchi/p/10763743.html
Copyright © 2011-2022 走看看