Apache Ranger0.5编译
1. 编译环境
# CentOS7 # java git gcc环境 yum install git wget yum java-1.8.0-openjdk* gcc -y # maven环境 wget https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz tar xvf apache-maven-3.6.3-bin.tar.gz -C /opt/ mv /opt/apache-maven-3.6.3/ /opt/maven
2. ranger下载
wget https://archive.apache.org/dist/incubator/ranger/0.5.3-incubating/apache-ranger-incubating-0.5.3.tar.gz
3. ranger编译
tar xvf apache-ranger-incubating-0.5.3.tar.gz cd apache-ranger-incubating-0.5.3 /opt/maven/bin/mvn clean compile package install assembly:assembly -Dmaven.test.skip=true
4. 编译完成
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for ranger 0.5.3: [INFO] [INFO] ranger ............................................. SUCCESS [ 5.926 s] [INFO] Jdbc SQL Connector ................................. SUCCESS [ 0.147 s] [INFO] Credential Support ................................. SUCCESS [ 0.224 s] [INFO] ranger_solrj ....................................... SUCCESS [ 1.194 s] [INFO] Audit Component .................................... SUCCESS [ 0.301 s] [INFO] Common library for Plugins ......................... SUCCESS [ 0.408 s] [INFO] Installer Support Component ........................ SUCCESS [ 0.216 s] [INFO] Credential Builder ................................. SUCCESS [ 0.179 s] [INFO] Embedded Web Server Invoker ........................ SUCCESS [ 0.113 s] [INFO] Key Management Service ............................. SUCCESS [ 0.333 s] [INFO] ranger-plugin-classloader .......................... SUCCESS [ 0.126 s] [INFO] HBase Security Plugin Shim ......................... SUCCESS [ 0.742 s] [INFO] HBase Security Plugin .............................. SUCCESS [ 0.342 s] [INFO] Hdfs Security Plugin ............................... SUCCESS [ 0.636 s] [INFO] Hive Security Plugin ............................... SUCCESS [ 0.469 s] [INFO] Knox Security Plugin ............................... SUCCESS [ 0.299 s] [INFO] Storm Security Plugin .............................. SUCCESS [ 0.309 s] [INFO] YARN Security Plugin ............................... SUCCESS [ 0.272 s] [INFO] Ranger Util ........................................ SUCCESS [ 0.646 s] [INFO] Unix Authentication Client ......................... SUCCESS [ 0.145 s] [INFO] Security Admin Web Application ..................... SUCCESS [ 5.433 s] [INFO] KAFKA Security Plugin .............................. SUCCESS [ 0.220 s] [INFO] SOLR Security Plugin ............................... SUCCESS [ 0.373 s] [INFO] Unix User Group Synchronizer ....................... SUCCESS [ 0.278 s] [INFO] Ldap Config Check Tool ............................. SUCCESS [ 0.649 s] [INFO] Unix Authentication Service ........................ SUCCESS [ 0.226 s] [INFO] KMS Security Plugin ................................ SUCCESS [ 0.244 s] [INFO] Hdfs Security Plugin Shim .......................... SUCCESS [ 0.195 s] [INFO] Hive Security Plugin Shim .......................... SUCCESS [ 0.319 s] [INFO] Knox Security Plugin Shim .......................... SUCCESS [ 0.224 s] [INFO] YARN Security Plugin Shim .......................... SUCCESS [ 0.257 s] [INFO] Storm Security Plugin shim ......................... SUCCESS [ 0.243 s] [INFO] KAFKA Security Plugin Shim ......................... SUCCESS [ 0.206 s] [INFO] ranger-examples .................................... SUCCESS [ 0.071 s] [INFO] Ranger Examples - Conditions and ContextEnrichers .. SUCCESS [ 0.198 s] [INFO] Ranger Examples - SampleApp ........................ SUCCESS [ 0.096 s] [INFO] Ranger Examples - Ranger Plugin for SampleApp ...... SUCCESS [ 0.203 s] [INFO] Ranger Tools ....................................... SUCCESS [ 0.197 s] [INFO] Unix Native Authenticator .......................... SUCCESS [ 0.315 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 06:24 min [INFO] Finished at: 2021-02-11T00:36:02+08:00 [INFO] ------------------------------------------------------------------------ [root@192 apache-ranger-incubating-0.5.3]# ls target/ antrun ranger-0.5.3-kafka-plugin.tar.gz ranger-0.5.3-solr-plugin.zip archive-tmp ranger-0.5.3-kafka-plugin.zip ranger-0.5.3-src.tar.gz maven-shared-archive-resources ranger-0.5.3-kms.tar.gz ranger-0.5.3-src.zip ranger-0.5.3-admin.tar.gz ranger-0.5.3-kms.zip ranger-0.5.3-storm-plugin.tar.gz ranger-0.5.3-admin.zip ranger-0.5.3-knox-plugin.tar.gz ranger-0.5.3-storm-plugin.zip ranger-0.5.3-hbase-plugin.tar.gz ranger-0.5.3-knox-plugin.zip ranger-0.5.3-usersync.tar.gz ranger-0.5.3-hbase-plugin.zip ranger-0.5.3-migration-util.tar.gz ranger-0.5.3-usersync.zip ranger-0.5.3-hdfs-plugin.tar.gz ranger-0.5.3-migration-util.zip ranger-0.5.3-yarn-plugin.tar.gz ranger-0.5.3-hdfs-plugin.zip ranger-0.5.3-ranger-tools.tar.gz ranger-0.5.3-yarn-plugin.zip ranger-0.5.3-hive-plugin.tar.gz ranger-0.5.3-ranger-tools.zip rat.txt ranger-0.5.3-hive-plugin.zip ranger-0.5.3-solr-plugin.tar.gz version [root@192 apache-ranger-incubating-0.5.3]#