如何构建apache-atlas-${project.version}-hive-hook.gz? &



我想让Hive在独立安装的atlas中自动导入元数据。apache atlas网站上的说明说"untar apache-atlas-${project.version}-hive-hook.tar.gz";我找不到这个文件。

我试图构建Apache -atlas-sources,我在"Apache atlas ui"中遇到了DependencyResolutionException错误。的一步。是否有mvn命令构建apache-atlas-${project.version}-hive-hook.tar.gz以便我可以完成说明?或者是否有解决DependencyResolutionException问题的方法?

TL;DR:从源代码构建Apache Atlas会在distro/target/文件夹内的单独tar文件中生成二进制文件和所有钩子。

如apache atlas github页面所述,在atlas构建过程中,钩子与atlas二进制文件一起构建。我已经复制了相关的README信息,特别是第3条:

构建过程

  1. 获取Atlas资源到本地目录,例如使用以下命令
$ cd <your-local-directory>    
$ git clone https://github.com/apache/atlas.git    
$ cd atlas
# Checkout the branch or tag you would like to build
#
# to checkout a branch
$ git checkout <branch>
# to checkout a tag
$ git checkout tags/<tag>
  1. 执行以下命令构建Apache Atlas
$ export MAVEN_OPTS="-Xms2g -Xmx2g"
$ mvn clean install
$ mvn clean package -Pdist
  1. 在以上构建命令成功完成后,您应该看到以下文件
distro/target/apache-atlas-<version>-bin.tar.gz
distro/target/apache-atlas-<version>-hbase-hook.tar.gz
distro/target/apache-atlas-<version>-hive-hook.tar.gz
distro/target/apache-atlas-<version>-impala-hook.tar.gz
distro/target/apache-atlas-<version>-kafka-hook.tar.gz
distro/target/apache-atlas-<version>-server.tar.gz
distro/target/apache-atlas-<version>-sources.tar.gz
distro/target/apache-atlas-<version>-sqoop-hook.tar.gz
distro/target/apache-atlas-<version>-storm-hook.tar.gz
distro/target/apache-atlas-<version>-falcon-hook.tar.gz

最新更新