apache-atlas complete installation tutorial - Offline installation

Apache Atlas Introduction
  Apache Atlas is Hadoop community to solve the problem of metadata management Hadoop ecosystem resulting from open source project, it provides includes data classified as Hadoop cluster, centralized policy engine, metadata lineage, security and lifecycle management, including data management core competencies.

ready:

1.ubuntu 16.04

2.apache-atlas Source Package: Apache-Atlas-1.0.0-sources.tar.gz 

3.maven installation package: Apache-Maven-3.5.4-bin.tar.gz 

4.jdk installation package:  JDK-8u212-Linux-x64.tar.gz

 

First, install jdk

1. sudo mkdir / usr / local / java create a separate directory

2. sudo tar -zxvf jdk-8u212-linux-x64.tar.gz -C / usr / local / java unzip

------------------------------------------------------------------------------------------------------------------------------

Configuration environment variable

sudo gedit /etc/environment

  Add to

    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$JAVA_HOME/bin"
    export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
    export JAVA_HOME=/usr/local/java/jdk1.8.0_212

------------------------------------------------------------------------------------------------------------------------------

The environment variables to take effect immediately

source /etc/environment

------------------------------------------------------------------------------------------------------------------------------

Configure all of the user's environment variables

sudo gedit / etc / profile
  is added to the end of the text

    #set Java environment
    export JAVA_HOME=/usr/local/java/jdk1.8.0_212
    export JRE_HOME=$JAVA_HOME/jre
    export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
    export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

------------------------------------------------------------------------------------------------------------------------------

Global settings take effect immediately execute the command

source /etc/profile

------------------------------------------------------------------------------------------------------------------------------

Excuting an order

sudo shutdown -r now

Enter the password to restart

------------------------------------------------------------------------------------------------------------------------------

Enter java -version check the environment

 

Second, the installation maven

1. sudo mkdir / opt / maven create a separate directory

2. sudo cd / opt / maven && tar -zxvf apache maven 3.5.4-bin.tar.gz--to decompress

3. ln -s /opt/maven/apache-maven-3.5.4/bin/mvn / usr / bin / mvn new soft

4. Configure Ali cloud Maven repository available domestic

Setting.xml modify files in the file conf Maven root folder, the code is as follows:

<mirrors>
    <mirror> <id>alimaven</id> <name>aliyun maven</name>   <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors>

 

Third, compile Apache Atlas

1. sudo tar -zxvf apache-atlas-1.0.0-sources.tar.gz decompressor

2. cd apache-atlas-sources-1.0.0 directory into the

3. export MAVEN_OPTS = "- Xms2g -Xmx4g" heap size configuration

4. Compile, selected from one of the two methods

A, mvn clean -DskipTests package -Pdist compile command, pay attention to the way the compiler will not inline HBase and Solr

Two, mvn clean -DskipTests package -Pdist, embedded-hbase-solr In this way the compiler will inline HBase and Solr, tested in this way

BUILD jar package located in the directory: \ apache-atlas-sources-1.1.0 \ distro \ target in

 

Fourth, to deploy Apache Atlas

1. sudo mkdir / opt / apache-atlas new

2. cd \ apache-atlas-sources-1.1.0 \ distro \ target to find the compiled file

3. sudo tar -zxvf apache-atlas-1.0.0-bin.tar.gz -C / opt / apache-atlas 解压

4. cd /opt/apache-atlas/apache-atlas-1.0.0 with embedded hbase and solr-up and configuration hbase and follow atlas start and stop solr

export JAVA_HOME=/opt/jdk/jdk1.8.0_212

export MANAGE_LOCAL_HBASE=true 

export MANAGE_LOCAL_SOLR=true 

bin/atlas_start.py 

# Need python2

5. bin / quick_start.py add own example

6. management interface log entry  http: // localhost: 21000  Username: admin password: admin

7. bin / atlas_stop.py stop

 

Guess you like

Origin www.cnblogs.com/liyaobin/p/11184532.html