zoukankan      html  css  js  c++  java
  • kylin3.1基于ambari2.7.5部署总结

    环境: Ambari 2.7.5 HDP 3.1 hadoop是3.1版本,hbase是2.0版本。

    需要部署kylin,从官网下载。

    一段操作,修改find-hive-conf-dir.sh、find-hadoop-conf-dir.sh和find-hbase-conf-dir.sh脚本,使之能够识别ambari中的jar包。修改代码如下。

    修改hbase_classpath 获取jar路径:

    find-hadoop-conf-dir.sh和find-hbase-conf-dir.sh文件

    hbase_classpath=`hbase mapredcp`
    hbase classpath >/tmp/hbase_env.txt 2>&1
    sed -i '1d' /tmp/hbase_env.txt
    hbase_classpath="${hbase_classpath}:`cat /tmp/hbase_env.txt`"

    修改hive连接方式

     两处地方:使用 hive -e set 连接的改成集群的连接方式,,我的集群开了ranger,所以需要加上用户。

    beeline -n hive -p hive -e

    修改的脚本已经收藏。

    启动kylin,报错。如下:

    Failed to find metadata store by url: kylin_metadata@hbase

    网上说两种情况,需要删除zookeeper中的两个节点。

    但这个不是,虽然报错一样。

    我这是版本引起的纠纷,,是kylin3.1的源码引起的。

     解决此类错误后,在使用过程中,,难免会有其他代码错误,修改源代码适配是一个很漫长的过程,,前期选型好了,才会避免这个过程。

  • 相关阅读:
    sshd
    eclipse运行报java.lang.OutOfMemoryError: PermGen space解决方法
    项目之间依赖
    shell-
    部署记录
    mysql index使用
    GitHub上搭建私人hexo博客操作教程
    关于Vue实例的生命周期(2)
    JS中的五种去重方法
    Vue入门教程(2)
  • 原文地址:https://www.cnblogs.com/wind-man/p/14182989.html
Copyright © 2011-2022 走看看