一、Apache Atlas源码的编译
git把Atlas的源码拉下来,使用git clone https://github.com/apache/atlas.git
假如是为了本地测试我们可以直接编译内嵌HBase solr的atlas。在执行mvn clean -DskipTests package -Pdist,embedded-hbase-solr
二、环境准备
启动HBase
启动solr
./solr start -c -z localhost:2181 -p 8983 -force
设置index
$SOLR_BIN/solr create -c vertex_index -d SOLR_CONF -shards #numShards -replicationFactor #replicationFactor
$SOLR_BIN/solr create -c edge_index -d SOLR_CONF -shards #numShards -replicationFactor #replicationFactor
$SOLR_BIN/solr create -c fulltext_index -d SOLR_CONF -shards
三、在本地调试Atlas源码
![](https://img-blog.csdnimg.cn/img_convert/d457e325b15a038e4cc84d7ce627b528.png)
-Datlas.home=/Users/wangjun/workspace/atlas/distro/target
-Datlas.conf=/Users/wangjun/workspace/atlas/distro/target/conf
-Datlas.data=/Users/wangjun/workspace/atlas/distro/target/data
-Datlas.log.dir=/Users/wangjun/workspace/atlas/distro/target/logs
然后就可以调试了