元数据管理工具
Apache Atlas
构建和安装Apache Atlas
构建Apache Atlas
下载 Apache Atlas 1.0.0 发行版源码, apache-atlas-1.0.0-sources.tar.gz, 从 downloads 下载. 然后按照以下说明构建Apache Atlas。
tar xvfz apache-atlas-1.0.0-sources.tar.gz
cd apache-atlas-sources-1.0.0/
export MAVEN_OPTS="-Xms2g -Xmx2g"
mvn clean -DskipTests installxxxxxxxxxx tar xvfz apache-atlas-1.0.0-sources.tar.gzcd apache-atlas-sources-1.0.0/export MAVEN_OPTS="-Xms2g -Xmx2g"mvn clean -DskipTests installtar xvfz apache-atlas-1.0.0-sources.tar.gzbash
打包Apache Atlas
要创建Apache Atlas软件包以在具有功能的Apache HBase和Apache Solr实例的环境中进行部署,请使用以下命令进行构建:
mvn clean -DskipTests package -Pdist
- 注意:
- 删除选项“ -DskipTests”以运行单元和集成测试
- 要构建没有缩小的js,css文件的发行版,请使用* skipMinify *配置文件进行构建。
默认情况下,最小化js和css文件。
上面将为具有功能性HBase和Solr实例的环境构建Apache Atlas。需要在以下环境中设置Apache Atlas,才能在此环境中运行:
- 配置atlas.graph.storage.hostname(请参见[配置](http://atlas.apache.org/1.0.0/Configuration.html)部分中的“图形持久性引擎-HBase”)
- 配置atlas.graph.index.search.solr.zookeeper-url(请参见[配置](http://atlas.apache.org/1.0.0/Configuration.html)部分中的“图形搜索索引-Solr”)。
- 将HBASE_CONF_DIR设置为指向有效的Apache HBase配置目录(请参见[配置](http://atlas.apache.org/1.0.0/Configuration.html)部分中的“图形持久性引擎-HBase”)。
- Create indices in Apache Solr (see “Graph Search Index - Solr” in the Configuration section).
使用嵌入式Apache HBase和Apache Solr打包Apache Atlas
要创建包含Apache HBase和Apache Solr的Apache Atlas软件包,请使用Embedded-hbase-solr配置文件进行构建,如下所示:
mvn clean -DskipTests package -Pdist,embedded-hbase-solr
使用Embedded-hbase-solr配置文件将配置Apache Atlas,以便与Apache Atlas服务器一起启动和停止Apache HBase实例和Apache Solr实例。
注意:此分发配置文件仅旨在用于单节点开发,而不能用于生产环境。
使用Apache Cassandra和Apache Solr打包Apache Atlas
要创建包含Apache Cassandra和Apache Solr的Apache Atlas软件包,请使用Embedded-cassandra-solr配置文件进行构建,如下所示:
mvn clean package -Pdist,embedded-cassandra-solr
使用Embedded-cassandra-solr配置文件将配置Apache Atlas,以便与Atlas服务器一起启动和停止Apache Cassandra实例和Apache Solr实例。
注意:此分发配置文件仅旨在用于单节点开发,而不能用于生产环境。
Atlas 打包
Build将创建以下文件,这些文件用于安装Apache Atlas。
distro/target/apache-atlas-${project.version}-bin.tar.gz
distro/target/apache-atlas-${project.version}-hbase-hook.tar.gz
distro/target/apache-atlas-${project.version}-hive-hook.gz
distro/target/apache-atlas-${project.version}-kafka-hook.gz
distro/target/apache-atlas-${project.version}-sources.tar.gz
distro/target/apache-atlas-${project.version}-sqoop-hook.tar.gz
distro/target/apache-atlas-${project.version}-storm-hook.tar.gz
安装 & 运行 Apache Atlas
安装 Apache Atlas
从您要安装Apache Atlas的目录中,运行以下命令:
tar -xzvf apache-atlas-${project.version}-bin.tar.gz
cd atlas-${project.version}