Structured Streaming checkpoint

checkpoint主要是面向kafkaStreamSource、rateStreamSource

/commits
/metadata
/offsets
/sources
/state

1、commitlog内容如下:
/commits/262
/commits/263

hadoop fs -cat /commits/164
v1
{}
注:version with prefix v

2、offsetSeq

/offsets/263
/offsets/264

hadoop fs -cat /offsets/265
v1
{"batchWatermarkMs":0,"batchTimestampMs":1533975004482,"conf":{"spark.sql.shuffle.partitions":"200","spark.sql.streaming.stateStore.providerClass":"org.apache.spark.sql.execution.streaming.state.HDFSBackedStateStoreProvider"}}
{"CBSS_ODS_GS":{"137":1124398818,"92":1124727398,"101":1124450643,"83":1124433278,"110":1124456872,"128":1124219743,"119":1124432547,"104":1124628336,"23":1124311329,"95":1124525375,"131":1124469343,"122":1124535024,"77":1124448871,"86":1124485192,"50":1124508471,"59":1124684544,"113":1124646095,"41":1124064203,"32":1124519454,"68":1124446354,"53":1124557152,"62":1124382089,"134":1124559698,"35":1124507617,"44":1124407028,"8":1124433001,"17":1124476420,"125":1124396390,"26":1124443966,"80":1124567565,"89":1124658207,"116":1124614654,"98":1124475544,"71":1124473950,"107":1124542529,"11":1124438204,"74":1124556643,"56":1124538763,"38":1124504126,"29":1124694681,"47":1124603677,"20":1124192614,"2":1124588467,"65":1124444154,"5":1124294139,"14":1124448849,"124":1124375546,"133":1124404400,"106":1124446976,"115":1124223326,"46":1124558944,"127":1124129305,"118":1124312050,"136":1124321917,"100":1124699504,"109":1124627319,"82":1124442521,"91":1124555678,"55":1124335963,"64":1124373113,"73":1124589828,"58":1124459124,"67":1124482459,"85":1124359891,"94":1124393984,"139":1124434665,"40":1124473917,"49":1124267140,"130":1124675189,"4":1124393400,"13":1124416361,"121":1124308740,"22":1124465366,"103":1124399814,"31":1124497397,"76":1124663123,"112":1124321464,"16":1124506270,"97":1124378643,"7":1124546058,"79":1124127427,"88":1124465497,"70":1124683417,"43":1124335991,"52":1124426670,"25":1123996945,"34":1124445672,"61":1124724327,"10":1124662549,"37":1124557737,"1":1124492770,"28":1124529006,"19":1124554560,"129":1124748745,"138":1124809837,"120":1124577963,"60":1124458993,"87":1124570910,"96":1124326628,"132":1124298235,"105":1124477087,"123":1124601206,"114":1124572178,"69":1124593835,"78":1124544523,"99":1124359214,"63":1124340260,"90":1124554065,"45":1124736498,"54":1124353713,"72":1124277878,"81":1124393509,"126":1124593551,"27":1124665644,"135":1124587297,"108":1124331277,"36":1124681226,"117":1124574196,"9":1124244797,"18":1124433233,"48":1124776095,"21":1124395649,"57":1124623562,"12":1124528086,"3":1124515899,"84":1124481011,"102":1124598175,"93":1124697719,"75":1124569607,"30":1124450004,"39":1124477532,"111":1124542936,"66":1124505569,"15":1124454816,"42":1124248608,"51":1124284882,"33":1124404806,"24":1124475933,"6":1124439966,"0":1124402328}}

batchWatermarkMs:当前event time watermark 主要是绑定迟到数据
batchTimestampMs:当前批次处理时间戳,(感觉不象unix时间,具体有待确认)
"spark.sql.shuffle.partitions":"200" 分区数
"CBSS_ODS_GS":{"137":1124398818:topic处理的分区最新偏移量

3、stateStore
存储跨批次聚合函数运行状态

/state/0/199/261.snapshot
--快照数据,有专门的线程定期负责清理,可以调整参数配置保留时间
/state/0/199/262.delta
--快照数据,有专门的线程定期负责清理,可以调整参数配置保留时间

4、metaData
/metadata

hadoop fs -cat /metadata
{"id":"b4ead721-abef-4021-b556-1d6874ea19e3"}

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 211,948评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,371评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,490评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,521评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,627评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,842评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,997评论 3 408
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,741评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,203评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,534评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,673评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,339评论 4 330
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,955评论 3 313
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,770评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,000评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,394评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,562评论 2 349

推荐阅读更多精彩内容