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
编译结束
相关推荐
D愿你归来仍是少年2 小时前
Apache Spark 第 3 章:核心概念 RDD / DataFrame
大数据·spark·apache
D愿你归来仍是少年4 小时前
Apache Spark 第 4 章:Spark 整体架构
spark·apache
D愿你归来仍是少年5 小时前
Apache Flink 算子(Operator)深度解析
大数据·flink·apache
可涵不会debug5 小时前
时序数据库选型指南:Apache IoTDB——大数据时代的优选方案
apache·时序数据库·iotdb
yumgpkpm5 小时前
Apache Spark 和 Flink,处理实时大数据流对比(Cloudera CDH、CDP)
flink·spark·apache
羑悻的小杀马特6 小时前
Apache IoTDB:开启端边云协同的时序数据新时代
运维·人工智能·apache·iotdb
是馄饨呀1 天前
Apache Tomcat RewriteValve路径遍历漏洞(CVE-2025-55752)修复
java·tomcat·apache
D愿你归来仍是少年1 天前
Apache Spark Real-Time Mode 深度解析:打破微批次壁垒,挑战 Flink 的实时王座
flink·spark·apache
zhglhy1 天前
Apache SkyWalking分布式链路实现
分布式·apache·skywalking
我不听你讲话2 天前
LNMP网络服务搭建
linux·php·apache