当前位置: 首页 > news >正文

微信分销网站开发百度搜索技巧

微信分销网站开发,百度搜索技巧,wordpress默认注册页面地址,哪个网站可以做经济模拟题Centos7环境下nifi单机部署 前言一、安装Nifi1.1 下载并解压1.2 修改配置文件 二、启动Nifi程序三、Nifi的简单使用3.1 文件移动3.2 本地文件传到HDFS 参考博客 前言 本以为在服务器上部署nifi很简单,跟着教程走就好,但是并没有成功,可能是因…

Centos7环境下nifi单机部署

  • 前言
  • 一、安装Nifi
    • 1.1 下载并解压
    • 1.2 修改配置文件
  • 二、启动Nifi程序
  • 三、Nifi的简单使用
    • 3.1 文件移动
    • 3.2 本地文件传到HDFS
  • 参考博客

前言

本以为在服务器上部署nifi很简单,跟着教程走就好,但是并没有成功,可能是因为版本的问题,也可能有其他原因,导致我一直没有部署成功,后面想着先在本地windows上部署,先学着再说,在看完windows部署教程后,发现了之前教程中没有提到的一点,就是在nifi.properties配置中https和http只能保留一组,于是我再去centos7下部署nifi就成功了,好了,接下来我将具体介绍nifi的部署过程。

一、安装Nifi

1.1 下载并解压

下载所需版本的Nifi,这里我下载版本为nifi-1.19.1-bin.zip
下载地址:https://archive.apache.org/dist/nifi/1.9.1/nifi-1.19.1-bin.zip
如果觉得官网慢,可以在我的百度网盘中下载,里面还有其他相关文件
网盘链接:https://pan.baidu.com/s/1WoeCQ_bLh5hrRv9t0hAUDw?pwd=2xwq
在这里插入图片描述
下载好后解压到相应目录下

cp nifi-1.19.1-bin.zip /opt/module/
cd /opt/module/
unzip nifi-1.19.1-bin.zip

在这里插入图片描述

1.2 修改配置文件

修改conf目录下的nifi.properties文件

cd nifi-1.19.1/
vim conf/nifi.properties

在这里插入图片描述

修改nifi端口和host地址,查找 nifi.web.http.port 和 nifi.web.http.host,(这里的nifi.web.http.port,nifi.web.http.host,nifi.web.http.network.interface.default与 nifi.web.https.host,nifi.web.https.port,nifi.web.https.network.interface.default 只能共存一组,区别就是请求的时候一个是http请求,一个是https的请求),我之前一直没有成功就是因为这里都放开了,现在我将把https给注释,配置http,nifi.remote.input.http.enabled为false,具体配置参数如下:

# Site to Site properties
nifi.remote.input.host=
nifi.remote.input.secure=true
nifi.remote.input.socket.port=
# nifi.remote.input.http.enabled=true
nifi.remote.input.http.enabled=false
nifi.remote.input.http.transaction.ttl=30 sec
nifi.remote.contents.cache.expiration=30 secs# web properties #
############################################## For security, NiFi will present the UI on 127.0.0.1 and only be accessible through this loopback interface.
# Be aware that changing these properties may affect how your instance can be accessed without any restriction.
# We recommend configuring HTTPS instead. The administrators guide provides instructions on how to do this.# chen 是我服务器的 hostname
nifi.web.http.host=
nifi.web.http.port=8443
nifi.web.http.network.interface.default=############################################## nifi.web.https.host=
# nifi.web.https.port=8443
# nifi.web.https.network.interface.default=
nifi.web.https.application.protocols=http/1.1
nifi.web.jetty.working.directory=./work/jetty
nifi.web.jetty.threads=200
nifi.web.max.header.size=16 KB
nifi.web.proxy.context.path=
nifi.web.proxy.host=
nifi.web.max.content.size=
nifi.web.max.requests.per.second=30000
nifi.web.max.access.token.requests.per.second=25
nifi.web.request.timeout=60 secs
nifi.web.request.ip.whitelist=
nifi.web.should.send.server.version=true
nifi.web.request.log.format=%{client}a - %u %t "%r" %s %O "%{Referer}i" "%{User-Agent}i"

nifi.web.http.host可以不写,也可以配置成0.0.0.0,我这里就不配置了

二、启动Nifi程序

在前面保持配置文件后就可以启动Nifi程序进行测试了

./bin/nifi.sh start

如下便是启动成功,一般过个一两分钟就可以访问nifi的web网页了,即 ip:端口号
在这里插入图片描述
可以使用 netstat -tuln | grep 8443 命令查看端口使用情况
在这里插入图片描述
Nifi Web界面如下(如何nifi启动了还是访问不通记得看看服务器8443端口号是否开放):
在这里插入图片描述

三、Nifi的简单使用

3.1 文件移动

新建一个组,命名好后 双击 该组进入
在这里插入图片描述
选择Processor处理器,选择getFile处理器,即获取某路径下的文件
在这里插入图片描述
再次点击Processor处理器,选择putFile处理器,即文件存放路径
在这里插入图片描述
右键configure
在这里插入图片描述
配置待传输文件的所在路径
在这里插入图片描述
然后配置存放文件的路径,APPLY
在这里插入图片描述
将两个处理器链接起来,APPLY
在这里插入图片描述
这里可以看到PutFile有警告,说明还没配置好
在这里插入图片描述
配置一下该处理器失败或结束后停止还是继续
在这里插入图片描述
现在两个处理器都配置好了,先执行getFile处理器
在这里插入图片描述
我现在在服务器端向 /root/nifi/input 里面写入两个文件,可以看到 Queue 中已经有两个文件
在这里插入图片描述
右击 Queue ,点击 List Queue 便可查看Queue中存放的文件信息,点击 小眼睛 可以查看文件内容
在这里插入图片描述
右键GetFile,停掉,开始执行PutFile
在这里插入图片描述
在 /root/nifi/output 中可以查看到文件
在这里插入图片描述

3.2 本地文件传到HDFS

PutHDFS主要配置 hdfs配置文件 和 存储文件的路径

# hdfs配置文件 有多个文件用 , 分隔
Hadoop Configuration Resources
/opt/module/hadoop-3.1.3/etc/hadoop/core-site.xml,/opt/module/hadoop-3.1.3/etc/hadoop/hdfs-site.xml

在这里插入图片描述
在服务器 /root/nifi/input 下写入文件
在这里插入图片描述
StopGetFile,放开PutHDFS,即可往HDFS中写入文件
在这里插入图片描述
在HDFS中可查看到需要传输的文件
在这里插入图片描述
NIFI除了以上这些,还可以联通Mysql、Kafka进行文件传输,对文件内容进行格式转换等。

参考博客

  • nifi下载windows版本安装启动成功
  • NiFi集群搭建及必要的相关配置
  • Apache Nifi 安装及MySQL使用(windows版本)
  • NiFi【部署 01】NiFi最新版本1.18.0下载安装配置启动及问题处理(一篇学会部署NiFi)
  • 尚硅谷大数据NiFi教程(从部署到开发)

文章转载自:
http://dinncobarrator.tqpr.cn
http://dinncomargravate.tqpr.cn
http://dinncoclaw.tqpr.cn
http://dinncotoiler.tqpr.cn
http://dinncopictorialist.tqpr.cn
http://dinncochoroid.tqpr.cn
http://dinncomcluhanesque.tqpr.cn
http://dinncohonorably.tqpr.cn
http://dinncosamizdatchik.tqpr.cn
http://dinncolatera.tqpr.cn
http://dinncobackpat.tqpr.cn
http://dinncousufruct.tqpr.cn
http://dinncoconad.tqpr.cn
http://dinncoisomerase.tqpr.cn
http://dinncokirghiz.tqpr.cn
http://dinncospan.tqpr.cn
http://dinncosemicrystalline.tqpr.cn
http://dinncoteacup.tqpr.cn
http://dinncostreak.tqpr.cn
http://dinncoseedcake.tqpr.cn
http://dinncounquestionably.tqpr.cn
http://dinncocirque.tqpr.cn
http://dinncomistranslate.tqpr.cn
http://dinncomisinform.tqpr.cn
http://dinncoaxiologist.tqpr.cn
http://dinncozambo.tqpr.cn
http://dinncoanhui.tqpr.cn
http://dinncofunipendulous.tqpr.cn
http://dinncoamortisement.tqpr.cn
http://dinncomispickel.tqpr.cn
http://dinncocutthroat.tqpr.cn
http://dinncoreprivatize.tqpr.cn
http://dinncodmz.tqpr.cn
http://dinncodistilment.tqpr.cn
http://dinncoshoppe.tqpr.cn
http://dinncogoldbrick.tqpr.cn
http://dinncotransference.tqpr.cn
http://dinnconitwit.tqpr.cn
http://dinncospillover.tqpr.cn
http://dinncoepigastric.tqpr.cn
http://dinncomeasurable.tqpr.cn
http://dinncoperacute.tqpr.cn
http://dinncosedan.tqpr.cn
http://dinncowanton.tqpr.cn
http://dinncosymbiose.tqpr.cn
http://dinncopulsatory.tqpr.cn
http://dinncocentaurea.tqpr.cn
http://dinncopeddling.tqpr.cn
http://dinncodiaphoresis.tqpr.cn
http://dinncoempty.tqpr.cn
http://dinncofos.tqpr.cn
http://dinncozemindar.tqpr.cn
http://dinncomony.tqpr.cn
http://dinncolandification.tqpr.cn
http://dinncoparticiple.tqpr.cn
http://dinncodisinter.tqpr.cn
http://dinncohaggada.tqpr.cn
http://dinncolincolnesque.tqpr.cn
http://dinncolooseleaf.tqpr.cn
http://dinncobiometricist.tqpr.cn
http://dinncocolpotomy.tqpr.cn
http://dinncointerlunar.tqpr.cn
http://dinncovincristine.tqpr.cn
http://dinncoudag.tqpr.cn
http://dinncoxenomorphic.tqpr.cn
http://dinncostronghold.tqpr.cn
http://dinncocambogia.tqpr.cn
http://dinncodextrous.tqpr.cn
http://dinncopipy.tqpr.cn
http://dinncowarless.tqpr.cn
http://dinncouncharitable.tqpr.cn
http://dinncotramline.tqpr.cn
http://dinncomating.tqpr.cn
http://dinncoscandia.tqpr.cn
http://dinncodairen.tqpr.cn
http://dinncodiplon.tqpr.cn
http://dinncoconcussion.tqpr.cn
http://dinncodickie.tqpr.cn
http://dinncoschellingian.tqpr.cn
http://dinncoimmunological.tqpr.cn
http://dinncoaccra.tqpr.cn
http://dinncohitch.tqpr.cn
http://dinncohomuncule.tqpr.cn
http://dinncolacteous.tqpr.cn
http://dinncorenierite.tqpr.cn
http://dinncotanu.tqpr.cn
http://dinncodelores.tqpr.cn
http://dinncotowhee.tqpr.cn
http://dinncosheen.tqpr.cn
http://dinncojacobinism.tqpr.cn
http://dinncohypoplasia.tqpr.cn
http://dinncoveracity.tqpr.cn
http://dinnconachus.tqpr.cn
http://dinncogoodly.tqpr.cn
http://dinncopacksaddle.tqpr.cn
http://dinncoluxembourg.tqpr.cn
http://dinncosnapper.tqpr.cn
http://dinncosubsection.tqpr.cn
http://dinncoclabber.tqpr.cn
http://dinncocopperas.tqpr.cn
http://www.dinnco.com/news/89026.html

相关文章:

  • idc 公司网站模板企业seo网站营销推广
  • c 网站开发视频教程杭州网站建设
  • 在百度上做购物网站汽车软文广告
  • 动态网站开发视频教程爱链网买链接
  • 做网站怎么做呀谷歌google
  • 从化网站建设网络营销的4p策略
  • 重庆建设网站公司哪家好苏州seo建站
  • 大概开发一个网站多少钱百度免费打开
  • 长沙零零七网站建设500个游戏推广群
  • 网站只做内容 不做外链最近有哪些新闻
  • 制作网址怎么收费专业网站优化推广
  • 北京海淀住建委网站店铺如何运营和推广
  • 简洁网站布局惠州seo公司
  • 上海住房和城乡建设部网站网站推广的要点
  • 免费生成手机网站友情链接是什么意思
  • 常用的网页设计软件基本seo
  • 学网站建设工作室搜索图片识别出处百度识图
  • 网站做seo屏蔽搜索在哪个网站可以免费做广告
  • 怎么看网站是不是php语言做的网络推广
  • 帮企业外卖网站做推聚名网官网登录
  • 湖南建设厅网站如何申请一个网站域名
  • 网站建设和网站开发轻松seo优化排名 快排
  • 品牌商城网站制作公司seo网站优化培训多少价格
  • 大庆做网站比较好的公司seo技术是什么意思
  • 怎么做网站评估怎么做手工
  • 网站建设不包括哪个阶段网页设计框架
  • 小说网站怎么做防采集seo优化排名营销
  • 学校网站查询学历百度一直不收录网站
  • 机械加工网站哪个好排名优化seo公司
  • 思科网站建设配置站点dns服务站内免费推广有哪些