Apache atlas 安装
1. /etc/profile,需要配JAVA_HOME
2.环境:MAVEN3.6/JDK8
3.下载
wget https://www.apache.org/dyn/closer.cgi/atlas/1.1.0/apache-atlas-1.1.0-sources.tar.gz
4.解压
tar xvfz apache-atlas-1.1.0-sources.tar.gz
5.进入目录
cd apache-atlas-sources-1.1.0
6.查找并修改pom.xml
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.5</version>
</plugin>
7.构建编译
export MAVEN_OPTS="-Xms2g -Xmx4g"
mvn clean -DskipTests install
8.打包
-
To create Apache Atlas package for deployment in an environment having functional Apache HBase and Apache Solr instances, build with the following command:
mvn clean -DskipTests package -Pdist
-
Packaging Apache Atlas with embedded Apache HBase & Apache Solr:
mvn clean -DskipTests package -Pdist,embedded-hbase-solr
-
Packaging Apache Atlas with embedded Apache Cassandra & Apache Solr
mvn clean package -Pdist,embedded-cassandra-solr
9. Apache Atlas Package
distro/target/apache-atlas-${project.version}-bin.tar.gz
distro/target/apache-atlas-${project.version}-hbase-hook.tar.gz
distro/target/apache-atlas-${project.version}-hive-hook.gz
distro/target/apache-atlas-${project.version}-kafka-hook.gz
distro/target/apache-atlas-${project.version}-sources.tar.gz
distro/target/apache-atlas-${project.version}-sqoop-hook.tar.gz
distro/target/apache-atlas-${project.version}-storm-hook.tar.gz
distro/target/apache-atlas-${project.version}-server.tar.gz
10.安装、运行
tar -xzvf apache-atlas-${project.version}-bin.tar.gz
cd atlas-${project.version}
export MANAGE_LOCAL_HBASE=true
export MANAGE_LOCAL_SOLR=true
./bin/atlas_start.py
11. 验证
curl -u admin:admin http://localhost:21000/api/atlas/admin/version
输出:{"Description":"Metadata Management and Data Governance Platform over Hadoop","Version":"1.1.0","Name":"apache-atlas"}
Run quick start to load sample model and data:
./bin/quick_start.py
Enter username for atlas :-
Enter password for atlas :-
Access Apache Atlas UI using a browser: http://localhost:21000
./bin/atlas_stop.py