下载
$ wget https://github.com/apache/ranger/archive/release-ranger-2.0.0.tar.gz
解压缩
$ tar zxvf release-ranger-2.0.0.tar.gz -C /opt/module/
编译
$ mvn clean compile package assembly:assembly install -DskipTests
结果
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for ranger 2.0.0:
[INFO]
[INFO] ranger ............................................. SUCCESS [ 4.100 s]
[INFO] Jdbc SQL Connector ................................. SUCCESS [ 1.290 s]
[INFO] Credential Support ................................. SUCCESS [ 1.137 s]
[INFO] Audit Component .................................... SUCCESS [ 2.280 s]
[INFO] Common library for Plugins ......................... SUCCESS [ 6.534 s]
[INFO] Installer Support Component ........................ SUCCESS [ 0.494 s]
[INFO] Credential Builder ................................. SUCCESS [ 1.100 s]
[INFO] Embedded Web Server Invoker ........................ SUCCESS [ 1.138 s]
[INFO] Key Management Service ............................. SUCCESS [ 2.092 s]
[INFO] ranger-plugin-classloader .......................... SUCCESS [ 0.566 s]
[INFO] HBase Security Plugin Shim ......................... SUCCESS [ 2.343 s]
[INFO] HBase Security Plugin .............................. SUCCESS [ 2.907 s]
[INFO] Hdfs Security Plugin ............................... SUCCESS [ 1.357 s]
[INFO] Hive Security Plugin ............................... SUCCESS [ 5.140 s]
[INFO] Knox Security Plugin Shim .......................... SUCCESS [ 1.802 s]
[INFO] Knox Security Plugin ............................... SUCCESS [ 2.060 s]
[INFO] Storm Security Plugin .............................. SUCCESS [ 1.495 s]
[INFO] YARN Security Plugin ............................... SUCCESS [ 2.249 s]
[INFO] Ozone Security Plugin .............................. SUCCESS [ 1.619 s]
[INFO] Ranger Util ........................................ SUCCESS [ 2.068 s]
[INFO] Unix Authentication Client ......................... SUCCESS [ 0.740 s]
[INFO] Security Admin Web Application ..................... SUCCESS [ 52.486 s]
[INFO] KAFKA Security Plugin .............................. SUCCESS [ 1.327 s]
[INFO] SOLR Security Plugin ............................... SUCCESS [ 1.942 s]
[INFO] NiFi Security Plugin ............................... SUCCESS [ 1.336 s]
[INFO] NiFi Registry Security Plugin ...................... SUCCESS [ 1.365 s]
[INFO] Unix User Group Synchronizer ....................... SUCCESS [ 3.101 s]
[INFO] Ldap Config Check Tool ............................. SUCCESS [ 0.613 s]
[INFO] Unix Authentication Service ........................ SUCCESS [ 1.107 s]
[INFO] KMS Security Plugin ................................ SUCCESS [ 1.367 s]
[INFO] Tag Synchronizer ................................... SUCCESS [ 1.750 s]
[INFO] Hdfs Security Plugin Shim .......................... SUCCESS [ 1.081 s]
[INFO] Hive Security Plugin Shim .......................... SUCCESS [ 3.308 s]
[INFO] YARN Security Plugin Shim .......................... SUCCESS [ 1.254 s]
[INFO] OZONE Security Plugin Shim ......................... SUCCESS [ 1.634 s]
[INFO] Storm Security Plugin shim ......................... SUCCESS [ 1.279 s]
[INFO] KAFKA Security Plugin Shim ......................... SUCCESS [ 1.097 s]
[INFO] SOLR Security Plugin Shim .......................... SUCCESS [ 2.864 s]
[INFO] Atlas Security Plugin Shim ......................... SUCCESS [ 2.036 s]
[INFO] KMS Security Plugin Shim ........................... SUCCESS [ 1.270 s]
[INFO] ranger-examples .................................... SUCCESS [ 0.196 s]
[INFO] Ranger Examples - Conditions and ContextEnrichers .. SUCCESS [ 1.125 s]
[INFO] Ranger Examples - SampleApp ........................ SUCCESS [ 0.607 s]
[INFO] Ranger Examples - Ranger Plugin for SampleApp ...... SUCCESS [ 1.220 s]
[INFO] Ranger Tools ..................### 下载spark
wget https://www.apache.org/dyn/closer.lua/spark/spark-2.4.3/spark-2.4.3-bin-hadoop2.7.tgz
### 解压缩
tar zxvf spark-2.4.3-bin-hadoop2.7.tgz -C /opt/module/
### 拷贝初始文件
cp spark-env.sh.template spark-env.sh
cp spark-defaults.conf.template spark-defaults.conf
cp slaves.template slaves
### 修改spark-env.sh
grep -vE '#| ′ s p a r k − e n v . s h e x p o r t S P A R K D I S T C L A S S P A T H