Cloudera Edge Manager简述
一.Description
CDF(Cloudera DataFlow)源自HDF(Hortonworks DataFlow),HDF是一个可缩放的实时流分析平台,它可以提取、组织和分析数据,以获得关键洞察和即时的可操作情报。
CDF是由CFM(Cloudera Flow Manager)、CEM(Cloudera Edge Manager)和CSP(Cloudera Stream Processing)3部分组成,其中,CEM包括EFM(Edge Flow Manager)和2类MiNiFi(Java Agent、C++ Agent)。
二.Install CFM
1.install nifi-registry
a).download nifi-registry
b).configration
vi nifi-registry-0.3.0.1.0.0.0-90/conf/nifi-registry.properties
# web properties #
nifi.registry.web.war.directory=./lib
nifi.registry.web.http.host=hostname
nifi.registry.web.http.port=18080
nifi.registry.web.https.host=
nifi.registry.web.https.port=
nifi.registry.web.jetty.working.directory=./work/jetty
nifi.registry.web.jetty.threads=200
c).start service
nifi-registry-0.3.0.1.0.0.0-90/bin/nifi-registry.sh start
d).view log
tail -400f logs/nifi-registry-app.log
e).access page
http://hostname:18080/nifi-registry
2.install EFM
a).download EFM
b).configration
efm-1.0.0.1.0.0.0-54/conf/efm.properties
# Web Server Properties
# address: the hostname or ip address of the interface to bind to; to bind to all, use 0.0.0.0
efm.server.address=hostname
efm.server.port=10080
efm.server.servlet.contextPath=/efm
# NiFi Registry Properties
# url: the base URL of a NiFi Registry instance
# bucket: Only set one of bucketId OR bucketName
# flowRefreshInterval: specify value and units (d=days, h=hours, m=minutes, s=seconds, ms=milliseconds)
efm.nifi.registry.enabled=true
efm.nifi.registry.url=http://hostname:18080
efm.nifi.registry.bucketId=
efm.nifi.registry.bucketName=minifi
efm.nifi.registry.flowRefreshInterval=60s
c).start service
efm-1.0.0.1.0.0.0-54/bin/efm.sh start
d).view log
tail -400f logs/efm-app.log
e).access page
3.install java agent
a).download EFM
b).configration
vi minifi-0.6.0.1.0.0.0-54/conf/bootstrap.conf
# MiNiFi Command & Control Configuration
# C2 Properties
# Enabling C2 Uncomment each of the following options
# define those with missing options
nifi.c2.enable=true
## define protocol parameters
nifi.c2.rest.url=http://hostname:10080/efm/api/c2-protocol/heartbeat
nifi.c2.rest.url.ack=http://hostname:10080/efm/api/c2-protocol/acknowledge
## heartbeat in milliseconds. defaults to once a second
nifi.c2.agent.heartbeat.period=10000
## define parameters about your agent
nifi.c2.agent.class=java-agent-100
# Optional. Defaults to a hardware based unique identifier
nifi.c2.agent.identifier=100
c).start service
minifi-0.6.0.1.0.0.0-54/bin/minifi.sh start
d).view log
tail -400f logs/minifi-app.log
4.install C++ agent
a).download EFM
b).configration
nifi-minifi-cpp-0.6.0/conf/minifi.properties
## Enabling C2 Uncomment each of the following options
## define those with missing options
nifi.c2.enable=true
## define protocol parameters
## The default is CoAP, if that extension is built.
## Alternatively, you may use RESTSender if http-curl is built
#nifi.c2.agent.protocol.class=CoapProtocol
#nifi.c2.agent.coap.host=
#nifi.c2.agent.coap.port=
nifi.c2.rest.url=http://hostname:10080/efm/api/c2-protocol/heartbeat
nifi.c2.rest.url.ack=http://hostname:10080/efm/api/c2-protocol/acknowledge
#nifi.c2.root.classes=DeviceInfoNode,AgentInformation,FlowInformation
## heartbeat 4 times a second
nifi.c2.agent.heartbeat.period=5000
## define parameters about your agent
nifi.c2.agent.class=c_agent
nifi.c2.agent.identifier=6
c).start service
nifi-minifi-cpp-0.6.0/bin/minifi.sh start
d).view log
tail -400f logs/minifi-app.log
三.Mysql Data
When MySQL is used as a metadata base
1.create database and user
CREATE DATABASE EFM DEFAULT CHARACTER SET utf8;
CREATE USER 'efm'@'%' IDENTIFIED BY '2wsx@WSX';
GRANT ALL PRIVILEGES ON *.* TO 'efm'@'%' WITH GRANT OPTION;
commit;
2.change EFM config
vi efm-1.0.0.1.0.0.0-54/conf/efm.properties
# Database Properties
efm.db.url=jdbc:mysql://hostname:3306/EFM
efm.db.driverClass=com.mysql.jdbc.Driver
efm.db.username=efm
efm.db.password=
efm.db.maxConnections=5
efm.db.sqlDebug=false
3.restart EFM
efm-1.0.0.1.0.0.0-54/bin/efm.sh restart
四.Build C++ Agent
1.check environment
[root@localhost ~]# cmake --version
cmake version 3.12.0
[root@localhost ~]# gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
[root@localhost ~]# bison --version
bison (GNU Bison) 3.0.4
[root@localhost ~]# flex --version
flex 2.5.37
[root@localhost ~]# patch --version
GNU patch 2.7.1
[root@localhost ~]# autoconf --version
autoconf (GNU Autoconf) 2.69
[root@localhost ~]# automake --version
automake (GNU automake) 1.13.4
[root@localhost ~]# libtool --version
libtool (GNU libtool) 2.4.2

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
-
上一篇
Java秒杀系统实战系列~待秒杀商品列表与详情功能开发
摘要: 本篇博文是“Java秒杀系统实战系列文章”的第四篇,从这篇文章开始我们将进入该秒杀系统相关业务模块的代码实战!本篇博文将首先从最简单的业务模块入手,即如何实现“获取待秒杀商品的列表以及查看待秒杀的商品详情”功能! 内容: 对于“待秒杀商品列表及其详情的展示”这一功能,我们将采用目前比较流行的mvc开发模式来实现!值得一提的是,这一功能模块涉及的主要数据库表为“商品信息表item”、“待秒杀商品信息item_kill”。 一、“待秒杀商品列表”代码实战 (1)首先是在 ItemController控制器中开发“获取待秒杀商品列表”的请求方法,其源代码如下所示: @RequestMapping(value = {"/","/index",prefix+"/list",prefix+"/index.html"},method = RequestMethod.GET) public String list(ModelMap modelMap){ try { //获取待秒杀商品列表 List<ItemKill> list=itemService.getKillItems();...
-
下一篇
你知道 Java 类是如何被加载的吗?
一:前言 最近给一个非Java方向的朋友讲了下双亲委派模型,朋友让我写篇文章深度研究下JVM的ClassLoader,我确实也好久没写JVM相关的文章了,有点手痒痒,涂了皮炎平也抑制不住。 我在向朋友解释的时候是这么说的:双亲委派模型中,ClassLoader在加载类的时候,会先交由它的父ClassLoader加载,只有当父ClassLoader加载失败的情况下,才会尝试自己去加载。这样可以实现部分类的复用,又可以实现部分类的隔离,因为不同ClassLoader加载的类是互相隔离的。 不过贸然的向别人解释双亲委派模型是不妥的,如果在不了解JVM的类加载机制的情况下,又如何能很好的理解“不同ClassLoader加载的类是互相隔离的”这句话呢?所以为了理解双亲委派,最好的方式,就是先了解下ClassLoader的加载流程。 二:Java 类
相关文章
文章评论
共有0条评论来说两句吧...
文章二维码
点击排行
推荐阅读
最新文章
- SpringBoot2全家桶,快速入门学习开发网站教程
- CentOS8编译安装MySQL8.0.19
- Docker使用Oracle官方镜像安装(12C,18C,19C)
- MySQL8.0.19开启GTID主从同步CentOS8
- Springboot2将连接池hikari替换为druid,体验最强大的数据库连接池
- SpringBoot2初体验,简单认识spring boot2并且搭建基础工程
- Dcoker安装(在线仓库),最新的服务器搭配容器使用
- Docker快速安装Oracle11G,搭建oracle11g学习环境
- MySQL数据库在高并发下的优化方案
- Docker容器配置,解决镜像无法拉取问题