Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
cd /usr/local
sudo tar zxvf ~/ranger/target/ranger-1.0.0-kylinsqoop-plugin.tar.gz 
sudo ln -­s ranger-1.0.0-kylinsqoop-plugin ranger-kylinsqoop-plugin
cd ranger-kylinsqoop-plugin

b. Now let’s edit the install.properties file. Here are the relevant lines that you should edit

...

PROPERIYVALUEDESCRIPTION
POLICY_MGR_URLhttp://localhost:6080Pull the address of the Ranger sqoop2 policy
REPOSITORY_NAMEkylindevsqoopdevKylin sqoop2 service name
COMPONENT_INSTALL_DIR_NAME/opt/ZDH/parcels/lib/kylinsqoop/sqoop-1.99.7-bin-hadoop200sqoop2 Kylin component installed directory
XAAUDIT.SOLR.ENABLEtrue

Whether to save the audit log

true: save the audit log

false: do not save the audit log

XAAUDIT.SOLR.URLhttp://localhost:8983/solr/ranger_auditsThe address of the audit log
CUSTOM_USERkylinsqoop2The user of installing the kylin component
CUSTOM_GROUPkylinsqoop2The user group of installing the kylin component

c. Now enable the kylinsqoop2-plugin by running the enable-kylinsqoop-plugin.sh command command using root user (Remember to set JAVA_HOME before running the command)

Code Block
cd /usr/local/rrangerenable-kylinsqoop-plugin
./enable-kylinsqoop-plugin.sh

d.Restart apache kylin

e. Restart apache ranger.

Code Block
sudo ranger-admin restart

ef.Verify install result

  • Check whether the kylin_kylindev.json file exists under the /etc/ranger/kylindev/policycache path
  • Check the kylin plugin status on the Plugins tab page of the Audit function on the Ranger Web page

...