Giter Site home page Giter Site logo

ambari-kylin-service's Introduction

Ambari Service for Kylin

Version

  • Kylin 2.6.6 (With Hadoop 3.x version)
  • Ambari 2.7+
  • HDP 3.1.0

Setup

Prepare kylin、spark tar

Prepare spark package

Configure spark-2.3.2-bin-hadoop2.7.tgz download url. Kylin must used special spark package to RUNNING successful.

Deploy Kylin on existing cluster

  • To download the kylin service folder, run below
VERSION=`hdp-select status hadoop-client | sed 's/hadoop-client - \([0-9]\.[0-9]\).*/\1/'`
echo $VERSION
sudo rm -rf /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/KYLIN  
sudo git clone https://github.com/bawfnje/ambari-kylin-service.git /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/KYLIN
  • Restart Ambari
sudo ambari-server restart

Configure

Create HBase Namespace

Namespace MUST BE UPPER CASE!!!

hbase shell
> create_namespace 'NS_KYLIN'

Kerberos TGT Init

[root@cdh-node-2 security]# cat init_kt.sh
#!/bin/bash
kinit -kt ./kylin.keytab [email protected]

Use crontab every 1:00 AM init TGT

0 1 * * * kylin /home/kylin/init_kt.sh  > /tmp/kylin-ktinit.log 2>&1

Apache Ranger configure

Generate all privileges on HDFS to kylin.
Generate all privileges on Hive to kylin.
Generate all privileges on HBase to kylin.

!!!IMPORTANT!!!

Every YARN node must had kylin user.

sudo groupadd kylin && sudo useradd kylin -g kylin && sudo gpasswd -a kylin hadoop

ambari-kylin-service's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.