ranger安装

本文档详细介绍了Apache Ranger的安装过程,包括SPARK_HOME的配置、Solr的安装启动、用户同步工具的配置和Ranger-HDFS插件的启用。通过一系列步骤,最终成功配置并启动了Ranger,实现了HDFS的安全管理。
摘要由CSDN通过智能技术生成

下载

$ 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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值