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
编译结束
相关推荐
超级小忍10 天前
Spring Boot 集成 Apache Kafka 实战指南
spring boot·kafka·apache
天上掉下来个程小白12 天前
Apache ECharts-02.入门案例
前端·spring boot·apache·echarts·苍穹外卖
SelectDB技术团队12 天前
Apache Doris 3.0.6 版本正式发布
大数据·数据分析·apache·实时分析·极速分析
guygg8813 天前
Linux中的阻塞信号与信号原理
linux·mysql·apache
天上掉下来个程小白14 天前
Apache ECharts-01.介绍
前端·javascript·spring boot·apache·苍穹外卖
Haoea!14 天前
持续集成 CI/CD-Jenkins持续集成GitLab项目打包docker镜像推送k8s集群并部署至rancher
ci/cd·gitlab·jenkins·rancher
陌殇殇殇14 天前
基于Helm部署Rancher容器管理平台
linux·云原生·容器·kubernetes·rancher
gb421528715 天前
高性能场景使用Protocol Buffers/Apache Avro进行序列化怎么实现呢
apache
midsummer_woo15 天前
复现 apache HTTPD 换行解析漏洞(CVE-2017-15715)
web安全·apache