Apache Atlas安装文档,apacheatlas文档


注意:Apache Atlas还是apache孵化项目,目前还无法用于生产环境,我也只是编译完成,在使用中还要继续探索。 Apache Atlas http://atlas.incubator.apache.org/index.html 官网安装文档 http://atlas.incubator.apache.org/InstallationSteps.html Quick start http://atlas.incubator.apache.org/QuickStart.html
安装步骤按照官网的步骤进行
Requirement JDK1.7+ Maven3.2+
编译所在的主机172.17.1.29:/root
git clone https://git-wip-us.apache.org/repos/asf/incubator-atlas.git atlas

cd atlas

export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m" && mvn clean install

遇到的坑 编译过程中需要下载Hbase和solr,默认是到apache官网下,速度巨慢,更换下载地址 修改这个文件 /root/atlas/distro/pom.xml  hbase.tar和solr.tar http://10.10.32.35/game-configuration/hbase-1.1.2-bin.tar.gz http://10.10.32.35/game-configuration/solr-5.1.0.tgz ant编译的时候就直接到我们的仓库中下载了
mvn clean package -Pdist

编译完成后可用在 /root/atlas/distro/target找到tar包
将tar包放在/usr/local下解压,link到/usr/local/atlas
配置atlas conf/atals-env.sh 如果需要运行成百上千的metadata对象的话需要配置调优:
export ATLAS_SERVER_OPTS="-server -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+PrintTenuringDistribution -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dumps/atlas_server.hprof -Xloggc:logs/gc-worker.log -verbose:gc -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=1m -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCTimeStamps"

如果使用JDK8pei zhi export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=5120m -XX:MetaspaceSize=100M -XX:MaxMetaspaceSize=512m"
hbase使用standalone模式 solr必须使用cloud模式 启动solr $SOLR_HOME/bin/solr start -c -z 172.17.1.29:2181 -p 8983
[172.17.1.29:root@hadoop001:/usr/local/atlas/solr]# bin/solr create -c vertex_index -d conf -shards 1 -replicationFactor 1
[172.17.1.29:root@hadoop001:/usr/local/atlas/solr]# bin/solr create -c edge_index -d conf -shards 1 -replicationFactor 1
[172.17.1.29:root@hadoop001:/usr/local/atlas/solr]# bin/solr create -c fulltext_index -d conf -shards 1 -replicationFactor 1

配置文件中缺少的配置 见 common/src/main/java/org/apache/atlas/AtlasConstants.java
package org.apache.atlas;

/**
 * Constants used in Atlas configuration.
 */
public final class AtlasConstants {
    private AtlasConstants() {
    }

    public static final String CLUSTER_NAME_KEY = "atlas.cluster.name";
    public static final String DEFAULT_CLUSTER_NAME = "primary";
    public static final String CLUSTER_NAME_ATTRIBUTE = "clusterName";
    public static final String SYSTEM_PROPERTY_APP_PORT = "atlas.app.port";
    public static final String DEFAULT_APP_PORT_STR = "21000";
    public static final String ATLAS_REST_ADDRESS_KEY = "atlas.rest.address";
    public static final String DEFAULT_ATLAS_REST_ADDRESS = "http://localhost:21000";
}

server-api/src/main/java/org/apache/atlas/ha/AtlasServerIdSelector.java  



相关内容

    暂无相关文章