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
编译结束
相关推荐
cesske10 小时前
uniapp 编译支付宝小程序canvas 合成图片实例,支付宝小程序 canvas 渲染图片 可以换成自己的图片即可
小程序·uni-app·apache
、花无将1 天前
PHP:下载、安装、配置,与apache搭建
android·php·apache
荣光波比1 天前
K8S(十五)—— 企业级K8s集群管理实践:Rancher安装配置与核心功能实操
容器·kubernetes·rancher
wei_shuo3 天前
Apache IoTDB 架构特性与 Prometheus+Grafana 监控体系部署实践
架构·apache·iotdb
熊文豪3 天前
Windows安装Apache Kafka保姆级教程(图文详解+可视化管理工具)
windows·kafka·apache
左师佑图4 天前
Apache POI SXSSFWorkbook 报错“没有那个文件或目录”问题排查与解决方案
java·apache·excel
华阙之梦4 天前
【在 Windows 上运行 Apache Hadoop 或 Spark/GeoTrellis 涉及 HDFS 】
hadoop·windows·apache
SelectDB技术团队4 天前
Apache Doris 与 ClickHouse:运维与开源闭源对比
运维·clickhouse·apache
西京刀客5 天前
开源 ETL(Extract,Transform,Load)工具之Apache Hop
开源·apache·etl·hop
FIavor.5 天前
Cannot resolve plugin org.apache.maven.plugins:maven-jar-plugin:3.2.2 这怎么办
maven·apache·jar