特別注意:
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 [01:59 min] [INFO] Apache Atlas Integration ........................... SUCCESS [01:17 min] [INFO] Apache Atlas Common ................................ SUCCESS [ 14.013 s] [INFO] Apache Atlas Typesystem ............................ SUCCESS [01:34 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.0 GraphDB Impl .............. SUCCESS [02:13 min] [INFO] Shaded version of Apache hbase client .............. SUCCESS [ 11.299 s] [INFO] Apache Atlas Titan 0.5.4 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 [01:37 min] [INFO] Apache Atlas Authorization ......................... SUCCESS [ 8.175 s] [INFO] Apache Atlas Business Catalog ...................... SUCCESS [ 13.057 s] [INFO] Apache Atlas UI .................................... SUCCESS [01:26 min] [INFO] Apache Atlas Web Application ....................... SUCCESS [01:40 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: 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目錄下拿到打包出來的產品