(^o^)/~完美 发表于 2017-12-24 08:51:10

(一)apache atlas源代码编译与打包

  特别注意:
  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  

  接下来是漫长的等待:(,若编译成功,则会提示下面的内容
  

------------------------------------------------------------------------  
Reactor Summary:
  

  
Apache Atlas Server Build Tools .................... SUCCESS [
29.869 s]  
apache
-atlas ....................................... SUCCESS   
Apache Atlas Integration ........................... SUCCESS [
01:17 min]  
Apache Atlas Common ................................ SUCCESS [
14.013 s]  
Apache Atlas Typesystem ............................ SUCCESS [
01:34 min]  
Apache Atlas Client ................................ SUCCESS [
29.192 s]  
Apache Atlas Server API ............................ SUCCESS [
9.333 s]  
Apache Atlas Notification .......................... SUCCESS [
19.377 s]  
Apache Atlas Graph Database Projects ............... SUCCESS [
0.607 s]  
Apache Atlas Graph Database API .................... SUCCESS [
5.454 s]  
Graph Database Common Code ......................... SUCCESS [
6.793 s]  
Apache Atlas Titan
1.0.0 GraphDB Impl .............. SUCCESS   
Shaded version of Apache hbase client .............. SUCCESS [
11.299 s]  
Apache Atlas Titan
0.5.4 Graph DB Impl ............. SUCCESS [ 52.467 s]  
Apache Atlas Graph Database Implementation Dependencies SUCCESS [
2.142 s]  
Shaded version of Apache hbase server .............. SUCCESS [
35.793 s]  
Apache Atlas Repository ............................ SUCCESS [
01:37 min]  
Apache Atlas Authorization ......................... SUCCESS [
8.175 s]  
Apache Atlas Business Catalog ...................... SUCCESS [
13.057 s]  
Apache Atlas UI .................................... SUCCESS [
01:26 min]  
Apache Atlas Web Application ....................... SUCCESS [
01:40 min]  
Apache Atlas Documentation ......................... SUCCESS [
29.650 s]  
Apache Atlas FileSystem Model ...................... SUCCESS [
3.675 s]
  
Apache Atlas Plugin>6.580 s]  
Apache Atlas Hive Bridge Shim ...................... SUCCESS [
49.676 s]  
Apache Atlas Hive Bridge ........................... SUCCESS [
22.269 s]  
Apache Atlas Falcon Bridge Shim .................... SUCCESS [
27.845 s]  
Apache Atlas Falcon Bridge ......................... SUCCESS [
9.340 s]  
Apache Atlas Sqoop Bridge Shim ..................... SUCCESS [
9.426 s]  
Apache Atlas Sqoop Bridge .......................... SUCCESS [
7.413 s]  
Apache Atlas Storm Bridge Shim ..................... SUCCESS [
16.481 s]  
Apache Atlas Storm Bridge .......................... SUCCESS [
14.226 s]  
Apache Atlas Distribution .......................... SUCCESS [
2.466 s]  

------------------------------------------------------------------------  
BUILD SUCCESS
  

------------------------------------------------------------------------  
Total time:
19:45 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目录下拿到打包出来的产品
页: [1]
查看完整版本: (一)apache atlas源代码编译与打包