博客
关于我
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/

你可能感兴趣的文章
python3+requests+unittest实战系列【一】
查看>>
python3+requests+unittest实战系列【二】
查看>>
Python3+Requests+Unittest实战系列【二】
查看>>
python3----ASCII
查看>>
Python3-selenium自动化测试框架,结合HTMLTestRunner测试报告!
查看>>
Python3-如何自我更新作为服务运行的应用程序
查看>>
Python3.1-网格模拟概念性问题
查看>>
Python3.12 解决conda环境libstdc++版本过低问题
查看>>
python3.2批量查询IP地址区域
查看>>
Python3.5中协程和未来/任务之间的区别?
查看>>
python3.5实现socket通讯(TCP)
查看>>
python3.6 ubuntu部署nginx、 uwsgi、 django
查看>>
Python3.6.3中,functools似乎不能用
查看>>
python3.6.5+cuda9+cudnn7.1+win10+tensorflow-gpu1.9.0下载配置
查看>>
python3.6使用pickle序列化class
查看>>
python3.6入门到高阶(全栈) day027 网络通信协议 osi七层模型
查看>>
Python3.6属性错误:模块‘;异步没有属性‘;运行‘;
查看>>
python3.6版本中的python-weka-wrapper安装失败,错误代码为%1
查看>>
Python3.7安装cv2踩过的坑
查看>>
python写txt文件
查看>>