Apache Ranger 2.2.0 编译

安装包下载:

https://ranger.apache.org/download.html

编译环境:
  • Linux centos7
  • jdk 1.8
  • maven 3.9.6
  • git
  • python 3
git 安装
shell 复制代码
yum -y install git
python3安装
shell 复制代码
yum install epel-release -y
yum install python3 python3-devel -y
批量安装开发工具套件
shell 复制代码
yum groupinstall -y "Development Tools"
maven配置
xml 复制代码
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">

  <pluginGroups>
    <!-- pluginGroup
     | Specifies a further group identifier to use for plugin lookup.
    <pluginGroup>com.your.plugins</pluginGroup>
    -->
  </pluginGroups>

  <proxies>

  </proxies>

  <servers>

  </servers>

<mirrors>
        <mirror>
            <id>aliyun-maven</id>
            <name>Aliyun Maven Mirror</name>
            <url>https://maven.aliyun.com/repository/public</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
</mirrors>

  <profiles>
   
	<profile>
			<!-- 大数据组件常用仓库 -->
            <id>cloudera-repo</id>
            <repositories>
                <repository>
                    <id>cloudera</id>
                    <name>Cloudera Repository</name>
                    <url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>
				<!-- 仓库2 -->
				 <repository>
					<id>kyligence</id>
					<url>https://repository.kyligence.io/repository/maven-public/</url>
				  </repository>
            </repositories>
        </profile>

  </profiles>

  <activeProfiles>
        <activeProfile>cloudera-repo</activeProfile>
    </activeProfiles>
</settings>
ranger-pom修改
版本修改
添加仓库
xml 复制代码
<repository>
	<id>cloudera.repo</id>
	<url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
</repository>
执行编译
shell 复制代码
mvn clean package assembly:single -DskipTests
编译结束
相关推荐
Apache IoTDB2 天前
Apache IoTDB V2.0.3 发布|新增元数据导入导出脚本适配表模型功能
apache·iotdb
专注代码七年3 天前
php:5.6-apache Docker镜像中安装 gd mysqli 库 【亲测可用】
php·apache
不会c嘎嘎4 天前
Linux --进度条小程序更新
linux·小程序·apache
IT成长日记5 天前
【Doris基础】Doris中的Tablet详解:核心存储单元的设计与实现
apache·doris·tablet
学习HCIA的小白5 天前
Apache Airflow
apache
颯沓如流星5 天前
Apache Kafka 实现原理深度解析:生产、存储与消费全流程
分布式·kafka·apache
神秘的土鸡5 天前
Apache 高级配置实战:从连接保持到日志分析的完整指南
linux·运维·apache
GLAB-Mary6 天前
如何在 Ubuntu 24.04 服务器上安装 Apache Solr
ubuntu·apache·solr
Clownseven6 天前
网站缓存入门与实战:浏览器与Nginx/Apache服务器端缓存,让网站速度起飞!(2025)
nginx·缓存·apache
IT成长日记7 天前
【Doris基础】Apache Doris中FE和BE的职责详解
apache·doris·be·fe·职责