博客
关于我
apache Atlas 1.2.0 搭建以及hive的集成
阅读量:564 次
发布时间:2019-03-09

本文共 1578 字,大约阅读时间需要 5 分钟。

Apache Atlas 1.2.0 安装入门指南

1. 环境搭建与源码下载

1.1 下载镜像与解压

通过选择适合的镜像获取 Apache Atlas 1.2.0 源码包,并上传至您的 Linux环境下进行解压:

tar -zxvf apache-atlas-1.2.0-sources.tar.gz

解压后即可获得 Atlas 源码目录。

1.2 环境要求

  • Java 1.8:确保 Java 发行版为 1.8。
  • Maven 3.5以上:用于编译源码。
  • Node.js:节点包可能在构建过程中进行使用。

1.3 编译源码

进入 Atlas 源码目录,使用 Maven 进行编译:

mvn clean -DskipTests package -Pdist,embedded-hbase-solr

编译完成后,目标文件会出现在:

/export/servers/apache-atlas-sources-1.2.0/distro/target

2. 配置与环境设置

2.1 核心配置文件解析

修改 atlas-application.properties 配置文件,根据需求调整以下参数:

  • 存储后端配置:
    atlas.graph.storage.backend=hbaseatlas.graph.storage.hbase.table=apache_atlas_janusatlas.graph.storage.hostname=localhost
  • HBase配置:
    atlas.graph.storage.hbase.regions-per-server=1
  • 通知配置:
    atlas.notification.embedded=true

2.2 集成Hive的配置

修改 hive-site.xml 添加 Atlas 插件:

hive.exec.post.hooks
org.apache.atlas.hive.hook.HiveHook

更新 hive-env.sh 文件,添加 HIVE_AUX_JARS_PATH:

export HIVE_AUX_JARS_PATH=/export/servers/apache-atlas-sources-1.2.0/distro/target/apache-atlas-1.2.0-server/apache-atlas-1.2.0/hook/hive

3. 启动服务

启动 Atlas 服务:

Renderer报错是因为缺少某些 Jackson 包,建议手动获取并部署:```bashscp -r hive root@node02:/export/servers/apache-atlas-sources-1.2.0/distro/target/apache-atlas-1.2.0-server/apache-atlas-1.2.0/hook/scp

重启 Hive 后,导入历史数据:

./import-hive.sh

验证服务状态,确保 HBase 和 Solr 正常运行。

Hive 集成详解

5.1 listener机制原理

Atlas通过监听 Hive 的 DDL、DML 事件,构建实体间的血缘关系。

5.2 plug-in开发与部署

修改 hive-site.xml,添加自定义 Hook 插件,确保路径正确。

5.3 数据导入与验证

输入默认账户密码,完成数据导入后,访问 Atlas WebUI 查看数据。

5.4 血缘关系可视化

通过 UI 查看实体间的血缘关系和操作历史,定位数据来源和流向。

通过以上步骤,您可以成功搭建并集成 Apache Atlas 1.2.0 与 Hive,实现元数据管理与数据资产价值提升。

转载地址:http://amvpz.baihongyu.com/

你可能感兴趣的文章
python+pytest接口自动化 —— 自动化用例编写思路 (使用pytest编写一个测试脚本)
查看>>
Python+pytest接口自动化之cookie绕过登录(保持登录状态)
查看>>
python+pytest接口自动化:接口测试
查看>>
Python+requests+unittest执行接口自动化测试详情
查看>>
Python+requests+unittest执行接口自动化测试详情
查看>>
python+requests+unittest执行自动化接口测试!
查看>>
Python+Requests编码识别Bug
查看>>
python函数编写_[零基础学python]传说中的函数编写条规
查看>>
Python+selenium —— UI自动化之鼠标操作
查看>>
python函数注释,参数后面加冒号:,函数后面的箭头→是什么?
查看>>
Python+Selenium+Threading进行兼容性测试
查看>>
Python+selenium+unittest的GUI自动化框架实现
查看>>
python函数拟合不规则曲线_Python计算&绘图——曲线拟合问题(转)
查看>>
python函数定义的基本格式_零基础学python-2.19 定义函数、调用函数与默认参数
查看>>
Python+Selenium之数据驱动测试的实现
查看>>
python函数定义与使用+返回值简解
查看>>
Python+Selenium登录
查看>>
Python日期时间模块
查看>>
Python函数合集:足足68个内置函数请收好!
查看>>
Python+Selenium自动化测试项目实战
查看>>