RuntimeException: cannot get HiveTableMeta

第一步,将hive下面的lib/*  复制到kylin的lib/ 下

第二步,在hive-site.xml 中加入

 <!--hive 的元数据服务, 供spark SQL 使用-->
    <property>
            <name>hive.metastore.uris</name>
            <value>thrift://master:9083</value>
            <description>Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore.</description>
          </property>

第三步 将hive中   hive-site.xml  复制到kylin conf/中

如果再遇到

InternalErrorException: Could not connect to meta store using any of the URIs provided. 

则要 在hive 中执行 bin/hive --service metastore & bin/hive,启动元数据服务。

如果hive加载不了,则要在/etc/profile中加入 配置       

export HIVE_CONF=/opt/module/hive/conf
export HCAT_HOME=/opt/module/hive/hcatalog
# 配置即时生效
. /etc/profile

我是多番查找,按照以上步骤解决了,祝好运

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值