目录
Apache Kylin™是一个开源的、分布式的分析型数据仓库,提供 Hadoop 之上的 SQL 查询接口及多维分析(OLAP)能力以支持超大规模数据,最初由eBay Inc.开发并贡献至开源社区。
项目上使用Kylin进行数据分析,数据的多维度预计算,提高前台数据展示效率。
问题描述
在进行cube注入后,发现重新构建cube,始终没有进度,如下图:
原因分析
进度卡在创建Hive表,那么手动登录hive客户端发现发现通过beeline或者hive时,需要输入username/password,这是不符合Kylin安装要求的。配置kylin时,要求hive进行免密设置,hive用户名密码都是一样的,且密码无验证,随便输入均可以通过。
解决方案
备份 beeline-site.xml
cp /usr/hdp/3.0.1.0-187/hive/conf/beeline-site.xml /usr/hdp/3.0.1.0-187/hive/conf/beeline-site.xml.bak
配置 beeline-site.xml
- 增加hive用户名密码 ;user=hive;pass word=hive(root 用户下面)
<configuration xmlns:xi="http://www.w3.org/2001/XInclude">
<property>
<name>beeline.hs2.jdbc.url.container</name>
<value>jdbc:hive2://datanode1:2181,datanode2:2181,datanode3:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;user=hive;password=hive</value>
</property>
<property>
<name>beeline.hs2.jdbc.url.default</name>
<value>container</value>
</property>
</configuration>
配置完成后,就可以了(不需要重启kylin或者hive)