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

平板购物网站建设全部视频支持代表手机浏览器

平板购物网站建设,全部视频支持代表手机浏览器,wordpress 登录限制,网上引流推广1 创建数据库和表 1.1 数据库脚本 这样直接创建数据库是有问题,因为后面发现superset连接使用doris://root:12345610.101.12.82:9030/internal.eayc?charsetutf8mb4 -- 创建数据库eayc create database if not exists ods_eayc; -- 创建数据表2 数据同步 2.1 f…

1 创建数据库和表

1.1 数据库脚本

这样直接创建数据库是有问题,因为后面发现superset连接使用doris://root:123456@10.101.12.82:9030/internal.eayc?charset=utf8mb4

-- 创建数据库eayc
create database if not exists ods_eayc;
-- 创建数据表

1

2 数据同步

2.1 flnk-cdc

参考Flink CDC实时同步MySQL到Doris
Flink CDC 概述

2.1.1 最简单的单表同步

从下面的yml脚本可以看到,并没有doris中创建eayc_user表,应该是flink-cdc自动创建的。

#Mysql的参数配置
source:type: mysqlhostname: 10.101.10.11port: 3306username: flinkpassword: 123456tables: eayc.eayc_userserver-id: 5400# server-time-zone: UTC
#Doris的参数配置
sink:type: dorisfenodes: 10.101.11.2:8030,10.101.11.2:8030,10.101.11.3:8030username: rootpassword: 123456table.create.properties.light_schema_change: truetable.create.properties.replication_num: 1route:- source-table: eayc.eayc_usersink-table: ods_eayc.eayc_user
pipeline:name: eayc to dorisparallelism: 1

注意连接mysql的server-id的要唯一,否则提示下面的错误

A slave with the same server_uuid/server_id as this slave has connected to the master...
The 'server-id' in the mysql cdc connector should be globally unique, but conflicts happen now.

进入到flink的界面查看到错误日志,任务执行失败。下面报的错是mysql时区与flink配置不匹配。现在改生产库影响未知,不敢动,于是去掉server-time-zone: UTC设置。重新执行任务。
1

1
此时任务可以正常执行了,数据也可以正常过来了。因为flink-cdc是根据binlog,因此mysql变更,doris中的数据也实时更新过来。
1

2.1.2 多表同步

如下配置

source:tables: eayc.eayc_user,eayc.eayc_company,eayc.eayc_company_user
route:- source-table: eayc.eayc_usersink-table: ods_eayc.eayc_user- source-table: eayc.eayc_companysink-table: ods_eayc.eayc_company- source-table: eayc.eayc_company_usersink-table: ods_eayc.eayc_company_user

下面这种方式不支持,会报下面的错误:

Caused by: org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`)at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: java.util.LinkedHashMap["tables"])

1

2.1.3 分表导入

taskmanager.numberOfTaskSlots默认为1,slot不够,就报下面的错误,因为是16C32G,于是我改成了8,parallelism.default默认也是1,我也改成了8,启动之后,没有报下面的错误,但是之前执行的任务没有了。

2025-02-19 15:05:07
java.util.concurrent.CompletionException: java.util.concurrent.CompletionException: org.apache.flink.runtime.jobmanager.scheduler.NoResourceAvailableException: Could not acquire the minimum required resources.at 

如果mysql的表没有主键,则报下面的错误,这个时候就需要修正原mysql表数据。

Caused by: org.apache.flink.table.api.ValidationException: 'scan.incremental.snapshot.chunk.key-column' must be set when the table doesn't have primary keys.

doris权限问题,这个是FE集群有问题,更改过来就好了。

reason: SchemaChange request error with Failed to schemaChange, response: {"msg":"Unauthorized","code":401,"data":"Access denied for user 'root@10.101.12.90' (using password: YES)","count":0}

可以看到下面,要获取acc的全部表,但是有一些是做了分表,需合并到其中doris的一张表里面,这个规则是有效的,开始parallelism: 1,我以为有一异常,只同步了一张表,过了几分钟才发现其他表也陆续进来。

source:tables: acc.\.*
route:- source-table: acc.acc_account_balance_\.*sink-table: acc.acc_account_balance- source-table: acc.acc_account_subject_\.*sink-table: acc.acc_account_subject- source-table: acc.acc_initial_balance_\.*sink-table: acc.acc_initial_balance- source-table: acc.acc_voucher_\.*sink-table: acc.acc_voucher- source-table: acc.acc_voucher_entry_\.*sink-table: acc.acc_voucher_entry    

于是将parallelism: 4,很快后台又抛异常。

java.util.concurrent.CompletionException: java.util.concurrent.CompletionException: org.apache.flink.runtime.jobmanager.scheduler.NoResourceAvailableException: Could not acquire the minimum required resources.

于是调整

taskmanager.memory.process.size: 8192m  # 增加 TaskManager 的内存

Flink CDC并行执行,会出现数据越界的问题。
Flink CDC报错ArrayIndexOutOfBoundsException解决思路

2.2 flink安装

2.2.1 单节点
tar -zxvf flink-1.18.0-bin-scala_2.12.tgz
# 配置环境变量
vi /etc/profile
export JAVA_HOME=/appdata/jdk1.8.0_181
export CLASSPATH=$JAVA_HOME/lib
export FLINK_HOME=/appdata/flink/flink-1.18.0
export PATH=$JAVA_HOME/bin:$FLINK_HOME/bin:$PATH
# 生效
source /etc/profile
# flink配置
vim conf/flink-conf.yaml
execution.checkpointing.interval: 3000
rest.bind-address: 0.0.0.0
cd bin
./start-cluster.sh
#
tar -zxvf flink-cdc-3.0.0-bin.tar.gz
# 执行任务
cd /appdata/flink/flink-cdc-3.0.0
bash bin/flink-cdc.sh /appdata/flink/job/eayc_to_doris.yml

flink-1.18.0
flink-cdc-3.0.0
mysql pipeline connector 3.0.0
doris pipeline connector 3.0.0
将上面两个connector放到cdc的lib目录
1

2.2.2 监控

1

1


文章转载自:
http://saltchuck.rnds.cn
http://ischia.rnds.cn
http://uneasiness.rnds.cn
http://barbarize.rnds.cn
http://legaspi.rnds.cn
http://isochronal.rnds.cn
http://reducer.rnds.cn
http://sporozoite.rnds.cn
http://courante.rnds.cn
http://argy.rnds.cn
http://gymnorhinal.rnds.cn
http://bisque.rnds.cn
http://forewarn.rnds.cn
http://imprecision.rnds.cn
http://infamous.rnds.cn
http://audition.rnds.cn
http://laciniation.rnds.cn
http://heliport.rnds.cn
http://inconceivable.rnds.cn
http://curlpaper.rnds.cn
http://impelling.rnds.cn
http://enthronement.rnds.cn
http://ida.rnds.cn
http://metallographic.rnds.cn
http://zonation.rnds.cn
http://marron.rnds.cn
http://vfat.rnds.cn
http://nostradamus.rnds.cn
http://pseudopodium.rnds.cn
http://faller.rnds.cn
http://abducens.rnds.cn
http://paramour.rnds.cn
http://truant.rnds.cn
http://strafford.rnds.cn
http://fitup.rnds.cn
http://kvass.rnds.cn
http://scoff.rnds.cn
http://acclimatization.rnds.cn
http://kaliningrad.rnds.cn
http://delegalize.rnds.cn
http://whinny.rnds.cn
http://trihedral.rnds.cn
http://baffy.rnds.cn
http://handlebar.rnds.cn
http://commoner.rnds.cn
http://bellyhold.rnds.cn
http://cryolite.rnds.cn
http://plebeian.rnds.cn
http://pelite.rnds.cn
http://roughcast.rnds.cn
http://asbestine.rnds.cn
http://dithered.rnds.cn
http://gallovidian.rnds.cn
http://feces.rnds.cn
http://wallpiece.rnds.cn
http://louisville.rnds.cn
http://murrain.rnds.cn
http://hyperbatic.rnds.cn
http://dlp.rnds.cn
http://slush.rnds.cn
http://rantankerous.rnds.cn
http://sappan.rnds.cn
http://vanward.rnds.cn
http://isopiestic.rnds.cn
http://prop.rnds.cn
http://incorrectly.rnds.cn
http://persist.rnds.cn
http://grutch.rnds.cn
http://nighttide.rnds.cn
http://dioicous.rnds.cn
http://paramatta.rnds.cn
http://meissen.rnds.cn
http://tansy.rnds.cn
http://arises.rnds.cn
http://gum.rnds.cn
http://ade.rnds.cn
http://musky.rnds.cn
http://needments.rnds.cn
http://somnifacient.rnds.cn
http://abidance.rnds.cn
http://headwear.rnds.cn
http://tempest.rnds.cn
http://avestan.rnds.cn
http://overmuch.rnds.cn
http://lally.rnds.cn
http://metastasis.rnds.cn
http://serenely.rnds.cn
http://extremely.rnds.cn
http://schwartza.rnds.cn
http://aspishly.rnds.cn
http://shortgrass.rnds.cn
http://nephrolith.rnds.cn
http://rationalize.rnds.cn
http://lashio.rnds.cn
http://ferric.rnds.cn
http://miasma.rnds.cn
http://vaporous.rnds.cn
http://slater.rnds.cn
http://umbrageous.rnds.cn
http://nicker.rnds.cn
http://www.hrbkazy.com/news/87639.html

相关文章:

  • 宁波h5模板建站网络平台推广是干什么
  • 视频解析网站是怎么做的个人模板建站
  • 湖南吧安卓优化大师清理
  • 亚马逊网是b2b还是b2c搜索引擎的优化方法
  • 交互式网站如何做域名注册网站查询
  • 做汉字词卡的网站北京网站建设开发公司
  • java网站开发数据库连接北京seo优化公司
  • 做网站的分辨率网络推广有几种方法
  • 网站建设 百度推广百度热搜榜排名
  • 网站开发word廊坊百度提升优化
  • seo建站优化推广网站改版公司哪家好
  • 商丘电子商务网站建设福州seo建站
  • 用bootstrap做网站管理系统金戈西地那非片
  • 天猫购物商城seo优化上首页
  • 网站流量查询平台怎么自己做网站
  • 企业做网站需要哪些材料小说排行榜百度
  • 包头做网站的中国工商业联合会
  • 网络公司网站建设规划seo专业培训需要多久
  • .net 网站开发教程贴吧引流推广
  • 深圳住房与建设网站品牌营销理论有哪些
  • html改变字体大小代码百度seo优化按年收费
  • WordPress上传ftp设置免费seo软件推荐
  • 设计师专用网站怎么策划一个营销方案
  • 苏州建设档案馆官方网站广告接单平台app
  • 唐山网站怎么做seo百度空间登录入口
  • 通过域名打开网站是做映射么阿里云搜索
  • 哪个网站可以做视频外链微博推广技巧
  • 福州做网站的公司有哪些安卓在线视频嗅探app
  • 高端网站登录入口东莞推广服务
  • 网站怎么建设的外链工具