Atlas编译

下载Apache Atlas源码 官方下载地址:http://atlas.apache.org/Downloads.html
解压 tar -xvfz apache-atlas-2.0.0-sources.tar.gz
编译 cd apache-atlas-sources-2.0.0/
export MAVEN_OPTS="-Xms2g -Xmx2g"
mvn clean -DskipTests package -Pdist,embedded-hbase-solr atlas自带hbase与solr
mvn clean -DskipTests package -Pdist 自己安装
mvn -T2C clean -DskipTests package -Pdist 多线程编译

编译文件目录/opt/apache-atlas-sources-2.0.0/distro/target
/opt/apache-atlas-sources-2.0.0/distro/target/apache-atlas-2.0.0-server/apache-atlas-2.0.0
在这里插入图片描述

报错:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:npm (npm install) on project atlas-dashboardv2: Failed to run task: ‘npm install’ failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

yum install -y nodejs
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install
npm run build
npm -v
npm install node-sass versions

解决方法
使用淘宝镜像完成安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install node-sass

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7:site (default) on project atlas-docs: SiteToolException: The site descriptor cannot be resolved from the repository:
ArtifactResolutionException: Unable to locate site descriptor: Could not transfer artifact org.apache:apache:xml:site_en:17 from/to maven.oracle.com (https://maven.oracle.com):
Failed to transfer file https://maven.oracle.com/org/apache/apache/17/apache-17-site_en.xml with status code 400

Atlas版本与pom.xml中hive版本不匹配,Atlas版本高于hive版本,将pom的hive版本该为3.1.0

有时候不能下载是网速不好,重新编译

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值