一、Solr安装
1、下载 curl -O https://downloads.apache.org/lucene/solr/8.8.2/solr-8.8.2.tgz
2、安装
采用cloud模式安装
tar -zxvf solr-8.8.2.tgz
mv solr-8.8.2 /opt/module/
mv solr atlas_conf
具体配置参考: https://blog.csdn.net/g511266804/article/details/106489935
3、启停
bin/solr stop
bin/solr start -c -z i-siqi02.novalocal:2181,i-siqi03.novalocal:2181,i-siqi04.novalocal:2181 -p 8983 -force
4、使用
(1)网址
http://i-siqi02.novalocal:8983/solr
(2)创建索引
bin/solr create -c vertex_index -d /opt/module/solr/atlas_conf -shards 3 -replicationFactor 2 -force
bin/solr create -c edge_index -d /opt/module/solr/atlas_conf -shards 3 -replicationFactor 2 -force
bin/solr create -c fulltext_index -d /opt/module/solr/atlas_conf -shards 3 -replicationFactor 2 -force
https://www.cnblogs.com/daishiwen/p/6965918.html
二、atlas安装
参考: https://blog.csdn.net/g511266804/article/details/106489935/
1、下载
atlas :wget -c https://ftp.jaist.ac.jp/pub/apache/atlas/2.1.0/apache-atlas-2.1.0-sources.tar.gz
2、编译
在linux下进行编译 ,第一次2个小时左右
tar xvfz apache-atlas-2.1.0-sources.tar.gz
cd apache-atlas-sources-2.1.0/
export MAVEN_OPTS="-Xms2g -Xmx2g"
mvn clean -DskipTests install
3、安装
参考安装文档步骤即可
(1)访问网址报503错误
有可能是stop时进程没有被kill,可以jps看下对应的进程是否有多个,kill进程后重启即可。
netstat -tunlp|grep 21000
3、启停
bin/atlas_start.py
bin/atlas_stop.py
4、访问
http://i-siqi02.novalocal:21000
用户名密码:admin/admin
5、导入hive元数据
参考: https://blog.csdn.net/weixin_44131414/article/details/114096860
(1) import-hive.sh 找不到是:
apache-atlas-sources-2.1.0/distro/target/apache-atlas-2.1.0-hive-hook/apache-atlas-hive-hook-2.1.0/hook-bin