特别注意:
atlas已经提供了0.8版本可以安装了,只有在国外的服务器上安装编译才比较顺利,可以按照官方文档去安装。
国内很多网址有被墙的问题,目前还没有完全解决,可能安装不成功
安装文档地址:http://atlas.apache.org/0.8.0-incubating/InstallationSteps.html
操作系统为ubuntu16.具体安装过程略
JDK使用JDK1.8.具体安装过程略
MAVEN3.3.具体安装过程略。
安装git版本.具体过程略
如果在国外的服务器上安装,可以不换源。
部分配置需要换源和FQ,可以参考此文档进行系统的基础配置:http://www.cnblogs.com/maobuji/p/6428537.html
若在国外服务器上可以使用google的镜像来加入maven的下载
<mirror>
<id>google-maven-central</id>
<name>Google Maven Central</name>
<url>https://maven-central.storage.googleapis.com</url>
<mirrorOf>central</mirrorOf>
</mirror>
获取apache atlas源代码,或者到官网上下载release版本
git clone https://git-wip-us.apache.org/repos/asf/incubator-atlas.git atlas
cd atlas
启动构建
export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install
但构建会启动单元测试,时间比较长,可以添加忽略测试
另外,如果一次构建失败了。可以不进行clean,直接install
export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn install -DskipTests
接下来是漫长的等待:(,若编译成功,则会提示下面的内容
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Atlas Server Build Tools .................... SUCCESS [ 29.869 s]
[INFO] apache-atlas ....................................... SUCCESS [: min]
[INFO] Apache Atlas Integration ........................... SUCCESS [: min]
[INFO] Apache Atlas Common ................................ SUCCESS [ 14.013 s]
[INFO] Apache Atlas Typesystem ............................ SUCCESS [: min]
[INFO] Apache Atlas Client ................................ SUCCESS [ 29.192 s]
[INFO] Apache Atlas Server API ............................ SUCCESS [ 9.333 s]
[INFO] Apache Atlas Notification .......................... SUCCESS [ 19.377 s]
[INFO] Apache Atlas Graph Database Projects ............... SUCCESS [ 0.607 s]
[INFO] Apache Atlas Graph Database API .................... SUCCESS [ 5.454 s]
[INFO] Graph Database Common Code ......................... SUCCESS [ 6.793 s]
[INFO] Apache Atlas Titan 1.0. GraphDB Impl .............. SUCCESS [: min]
[INFO] Shaded version of Apache hbase client .............. SUCCESS [ 11.299 s]
[INFO] Apache Atlas Titan 0.5. Graph DB Impl ............. SUCCESS [ 52.467 s]
[INFO] Apache Atlas Graph Database Implementation Dependencies SUCCESS [ 2.142 s]
[INFO] Shaded version of Apache hbase server .............. SUCCESS [ 35.793 s]
[INFO] Apache Atlas Repository ............................ SUCCESS [: min]
[INFO] Apache Atlas Authorization ......................... SUCCESS [ 8.175 s]
[INFO] Apache Atlas Business Catalog ...................... SUCCESS [ 13.057 s]
[INFO] Apache Atlas UI .................................... SUCCESS [: min]
[INFO] Apache Atlas Web Application ....................... SUCCESS [: min]
[INFO] Apache Atlas Documentation ......................... SUCCESS [ 29.650 s]
[INFO] Apache Atlas FileSystem Model ...................... SUCCESS [ 3.675 s]
[INFO] Apache Atlas Plugin Classloader .................... SUCCESS [ 6.580 s]
[INFO] Apache Atlas Hive Bridge Shim ...................... SUCCESS [ 49.676 s]
[INFO] Apache Atlas Hive Bridge ........................... SUCCESS [ 22.269 s]
[INFO] Apache Atlas Falcon Bridge Shim .................... SUCCESS [ 27.845 s]
[INFO] Apache Atlas Falcon Bridge ......................... SUCCESS [ 9.340 s]
[INFO] Apache Atlas Sqoop Bridge Shim ..................... SUCCESS [ 9.426 s]
[INFO] Apache Atlas Sqoop Bridge .......................... SUCCESS [ 7.413 s]
[INFO] Apache Atlas Storm Bridge Shim ..................... SUCCESS [ 16.481 s]
[INFO] Apache Atlas Storm Bridge .......................... SUCCESS [ 14.226 s]
[INFO] Apache Atlas Distribution .......................... SUCCESS [ 2.466 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: : min
接着进行打包,有多种选择,我们选择比较简单的内嵌方式打包
mvn clean package -DskipTests -Pdist,berkeley-elasticsearch
也可以使用以下几种方式进行打包(1.使用外部的hbase。2.内嵌hbase)
mvn clean package -DskipTests -Pdist,external-hbase-solr
mvn clean package -DskipTests -Pdist,embedded-hbase-solr
打包结束后,可以到atlas源代码目录的 distro/target目录下拿到打包出来的产品