下载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
有时候不能下载是网速不好,重新编译