Installing Apache Kylin
- Now let’s download and install Apache Kylin by following the excellent instructions available on the Kylin site itself. Please follow the steps to install apache kylin(Apache Kylin Installation Guide).
- These instructions were written for version 2.1.0. So grab that tar (apache-kylin-2.1.0-bin-hbase1x.tar.gz) and checksum file (apache-kylin-2.1.0-bin-hbase1x.tar.gz.md5).
- If java is not there, install JDK first.
Enabling Ranger Kylin Plugins
a. We’ll start by extracting our Ranger plugin build at the appropriate place (/usr/local).
cd /usr/local sudo tar zxvf ~/ranger/target/ranger-1.1.0-SNAPSHOT-kylin-plugin.tar.gz sudo ln -s ranger-1.1.0-SNAPSHOT-kylin-plugin ranger-kylin-plugin cd ranger-kylin-plugin
b. Now let’s edit the install.properties file. Here are the relevant lines that you should edit
- Change the install.properties file
PROPERTY | VALUE | DESCRIPTION |
---|---|---|
POLICY_MGR_URL | http://localhost:6080 | Pull the address of the Ranger policy |
REPOSITORY_NAME | kylindev | Kylin service name |
COMPONENT_INSTALL_DIR_NAME | /opt/ZDH/parcels/lib/kylin | Kylin component installed directory |
XAAUDIT.SOLR.ENABLE | true | Whether to save the audit log true: save the audit log false: do not save the audit log |
XAAUDIT.SOLR.URL | http://localhost:8983/solr/ranger_audits | The address of the audit log |
CUSTOM_USER | kylin | The user of installing the kylin component |
CUSTOM_GROUP | kylin | The user group of installing the kylin component |
c. Now enable the kylin-plugin by running the enable-kylin-plugin.sh command using root user(Remember to set JAVA_HOME before running the command)
cd /usr/local/ranger-kylin-plugin ./enable-kylin-plugin.sh
d.Restart apache kylin
e. Restart apache ranger.
sudo ranger-admin restart
f.Verify install result
- Check whether the kylin_kylindev.json file exists under the /etc/ranger/kylindev/policycache directory.
- Check the kylin plugin status on the Plugins tab page of the Audit function on the Ranger Web page