Atlas内嵌安装

发布时间 2024-01-05 10:46:22作者: 粒子先生

安装jdk

yum install java-1.8.0-openjdk* -y
 
#配置环境变量
export JAVA_HOME=/usr/lib/jvm/java
export PATH=$PATH:$JAVA_HOME/bin
 

安装maven

curl -o /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
 
yum -y install maven
vi /etc/maven/settings.xml
 

配置setting.xml

<localRepository>/opt/maven/apache-maven-3.6.3/repo</localRepository>
 
<mirrors>
  <mirror>
    <id>alimaven</id>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    <mirrorOf>central</mirrorOf>
 </mirror>
</mirrors>
 

安装nodejs

yum install -y nodejs nodejs-npm

创建用户,修改密码

useradd hadoop
passwd hadoop
 

下载源码,编译

wget https://mirrors.bfsu.edu.cn/apache/atlas/2.1.0/apache-atlas-2.1.0-sources.tar.gz
tar zxvf apache-atlas-2.1.0-sources.tar.gz
 
mvn clean -DskipTests package -Pdist,embedded-hbase-solr
 

启动

cd /opt/atlas/apache-atlas-sources-2.1.0/distro/target/apache-atlas-2.1.0-bin/apache-atlas-2.1.0
bin/atlas_start.py
 

访问地址

http://172.31.6.205:21000/index.html#!/search

http://172.31.6.205:61510/master-status

http://172.31.6.205:9838/solr/#/