第一步,将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
我是多番查找,按照以上步骤解决了,祝好运