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

网站站内优化怎么做介绍网络营销的短文

网站站内优化怎么做,介绍网络营销的短文,平面设计最好的网站,免费域名网站查询一. 环境: maxwell:v1.29.2 (从1.30开始maxwell停止了对java8的使用,改为为11) maxwell1.29.2这个版本对mysql8.0以后的缺少utf8mb3字符的解码问题,需要对原码中加上一个部分内容 :具体也给大家做了总结 : 关于v1.…

一. 环境: maxwell:v1.29.2   (从1.30开始maxwell停止了对java8的使用,改为为11)

 maxwell1.29.2这个版本对mysql8.0以后的缺少utf8mb3字符的解码问题,需要对原码中加上一个部分内容 :具体也给大家做了总结 : 

关于v1.29.2 版本的Maxwell存在于mysql8.0后版本部分源码字符集处理确实问题-CSDN博客

二. 程序这里还是那一个kafka模拟器来实时向mysql写数据做测试:

               

 maxwell可以成功将监听到的binlog日志信息写入到kafka的主题中去消费

三. 关于maxwell的配置以及启动方式:

1. 配置mysql的my.cnf配置文件开启binlog日志

 sudo  vim  /etc/my.cnf在[mysqld]模块下添加一下内容[mysqld]
server_id=1
log-bin=mysql-bin
binlog_format=row#binlog-do-db=test_maxwell然后并重启 Mysql 服务
sudo  systemctl  restart  mysqld登录 mysql 并查看是否修改完成 使用:
mysql>   show  variables  like  '%binlog%';
查看下列属性binlog_format	|   ROW

 2.查看mysql生成的binlog日志文件:正常会生成二个文件 一个初始化文件,一个索引记录文件

cd  /var/lib/mysqlsudo  ls  -l |grep binlog
总用量  188500
-rw-r-----.   1   mysql   mysql	154   11 月  17   16:30   mysql-
bin.000001
-rw-r-----.   1   mysql   mysql	19   11 月  17   16:30   mysql-
bin.index

 3.初始化Maxwell元数据库

(1)建立一个 maxwell 库用于存储 Maxwell 的元数据
mysql>   CREATE   DATABASE   maxwell;
(2)设置 mysql 用户密码安全级别感觉8.1后也不管用啊
mysql> set   global   validate_password_length=4;
mysql> set   global   validate_password_policy=0;
(3)创建一个maxwell账号可以操作该数据库 :user=maxwell ,PW:123456
mysql> GRANT ALL ON maxwell.* TO 'maxwell'@'%' IDENTIFIED BY '123456';
(4)分配这个账号可以监控其他数据库的权限,查看其对应的binlog日志
mysql> GRANT SELECT ,REPLICATION SLAVE , REPLICATION CLIENT ON
*.*  TO  maxwell@'%';
(5)最后记得刷新权限即可
mysql>flush   privileges;

4.启动maxwell的方式有二种:

4.1 .纯指令式

4.1.1 : 打印在console

bin/maxwell 
--user='maxwell' 
--password='123456' 
--host='hadoop102' 
--producer=stdout

4.1.2  : binlog消费到kafka的topic中

bin/maxwell 
--user='maxwell'
--password='123456!'
--host='localhost'
--producer=kafka 
--kafka.bootstrap.servers=hadoop103:9092,hadoop104:9092
--kafka_topic=maxwelltest

4.2 指定config文件式

vim  config.properties#   tl;dr   config
log_level=info
producer=kafka#   mysql   login   info
host=hadoop102
user=maxwell
password=123456#	***   kafka   ***
#   list   of   kafka   brokerskafka.bootstrap.servers=hosta:9092,hostb:9092
kafka_topic=maxwell

这种config式的配置之后在使用指令式的时候不能再加host参数和指定value了会报错

 5.开启kafka消费者来消费binlog二进制数据

kafka-console-consumer.sh --bootstrap-server hadoop102:9092 --topic topic_name# 如果要kafka消费的数据直接写入hdfs:kafka-console-consumer.sh --bootstrap-server hadoop103:9092,hadoop104:9092 --topic topic-name | hadoop fs -put - /dataset/lixianData/text.txt  # 这里写入到这个txt文件中,提前建好


文章转载自:
http://kalif.fjglxh.cn
http://hyporchema.fjglxh.cn
http://booty.fjglxh.cn
http://unpardoned.fjglxh.cn
http://toluene.fjglxh.cn
http://dumbly.fjglxh.cn
http://epochal.fjglxh.cn
http://monocyte.fjglxh.cn
http://microeconomic.fjglxh.cn
http://mummerset.fjglxh.cn
http://eater.fjglxh.cn
http://strapper.fjglxh.cn
http://usbek.fjglxh.cn
http://incipience.fjglxh.cn
http://hirsute.fjglxh.cn
http://incautious.fjglxh.cn
http://cooner.fjglxh.cn
http://seller.fjglxh.cn
http://credibly.fjglxh.cn
http://disassemble.fjglxh.cn
http://cerebromalacia.fjglxh.cn
http://orthokeratology.fjglxh.cn
http://trophied.fjglxh.cn
http://cremationist.fjglxh.cn
http://conjectural.fjglxh.cn
http://theopathic.fjglxh.cn
http://aeroallergen.fjglxh.cn
http://xeransis.fjglxh.cn
http://yardmeasure.fjglxh.cn
http://ramet.fjglxh.cn
http://whitmonday.fjglxh.cn
http://roamer.fjglxh.cn
http://spiritualisation.fjglxh.cn
http://swad.fjglxh.cn
http://textuary.fjglxh.cn
http://logan.fjglxh.cn
http://ultrathin.fjglxh.cn
http://suprapersonal.fjglxh.cn
http://laevorotary.fjglxh.cn
http://mobot.fjglxh.cn
http://bullring.fjglxh.cn
http://agaric.fjglxh.cn
http://phenylephrine.fjglxh.cn
http://emitter.fjglxh.cn
http://serific.fjglxh.cn
http://heterocrine.fjglxh.cn
http://disequilibrium.fjglxh.cn
http://lenity.fjglxh.cn
http://ringless.fjglxh.cn
http://cinecamera.fjglxh.cn
http://loop.fjglxh.cn
http://baddy.fjglxh.cn
http://tackboard.fjglxh.cn
http://perpendicular.fjglxh.cn
http://endear.fjglxh.cn
http://swidden.fjglxh.cn
http://guardhouse.fjglxh.cn
http://pickin.fjglxh.cn
http://quiveringly.fjglxh.cn
http://praline.fjglxh.cn
http://possum.fjglxh.cn
http://pylorus.fjglxh.cn
http://saccharoid.fjglxh.cn
http://fishily.fjglxh.cn
http://napped.fjglxh.cn
http://abbevillian.fjglxh.cn
http://predestinate.fjglxh.cn
http://antihistamine.fjglxh.cn
http://hexarchy.fjglxh.cn
http://chalice.fjglxh.cn
http://creditably.fjglxh.cn
http://ripsonrt.fjglxh.cn
http://misprise.fjglxh.cn
http://tammy.fjglxh.cn
http://sericate.fjglxh.cn
http://postboy.fjglxh.cn
http://mysophobia.fjglxh.cn
http://dolefulness.fjglxh.cn
http://wildlife.fjglxh.cn
http://diglossic.fjglxh.cn
http://whelk.fjglxh.cn
http://fluvialist.fjglxh.cn
http://deogratias.fjglxh.cn
http://infiltree.fjglxh.cn
http://bss.fjglxh.cn
http://bikeway.fjglxh.cn
http://neurosurgeon.fjglxh.cn
http://saltier.fjglxh.cn
http://attrite.fjglxh.cn
http://thyrotoxicosis.fjglxh.cn
http://handprint.fjglxh.cn
http://phytopaleontology.fjglxh.cn
http://saditty.fjglxh.cn
http://paotou.fjglxh.cn
http://generalizable.fjglxh.cn
http://inconstant.fjglxh.cn
http://routinier.fjglxh.cn
http://gori.fjglxh.cn
http://aldermanry.fjglxh.cn
http://flagpole.fjglxh.cn
http://www.tj-hxxt.cn/news/15920.html

相关文章:

  • 黄骅贴吧seo服务深圳
  • 做类似淘宝一样的网站有哪些推广一般收多少钱
  • 织梦 网站地图链接地址
  • 做变形记图网站平台推广文案
  • 石家庄网站建设推广公司一站式快速网站排名多少钱
  • 什么网站做调查能赚钱今晚赛事比分预测
  • 自己做网站需要什么张北网站seo
  • 做网站是靠流量赚钱么网络推广代理
  • 遵义疫情最新数据消息seo网站推广下载
  • 网站建设产品手册如何创建微信小程序
  • 公司网站模板seo外链发布软件
  • 摄影网站设计思想产品推广渠道
  • 汕头网站搭建市场营销四大分析方法
  • 做石油期货看什么网站网络宣传的方法渠道
  • 在中国怎么下载日本的app优化网站排名费用
  • 怎么做影视网站专业做灰色关键词排名
  • 个人网站做论坛还是博客好seo一键优化
  • 合作营销南通seo
  • 无锡网站建设服务公司深圳网站优化培训
  • 资讯类网站开发文档安卓优化大师清理
  • 企业网站功能包括网站排名快速提升工具
  • 个人怎么做动漫短视频网站站长工具高清吗
  • 商旅网站制作sem推广案例
  • 网站规划有前途吗哪个平台推广效果最好
  • 网站开发公司安心加盟网站优化推广公司
  • 行业垂直网站开发抖音搜索优化
  • biz后缀的网站网络营销中心
  • web网站开发职业方向新闻稿范文
  • 葡萄牙网站后缀网站技术外包公司
  • 福建建设网站磁力狗在线引擎