爆款云主机2核4G限时秒杀,88元/年起!
查看详情

活动

天翼云最新优惠活动,涵盖免费试用,产品折扣等,助您降本增效!
热门活动
  • 618智算钜惠季 爆款云主机2核4G限时秒杀,88元/年起!
  • 免费体验DeepSeek,上天翼云息壤 NEW 新老用户均可免费体验2500万Tokens,限时两周
  • 云上钜惠 HOT 爆款云主机全场特惠,更有万元锦鲤券等你来领!
  • 算力套餐 HOT 让算力触手可及
  • 天翼云脑AOne NEW 连接、保护、办公,All-in-One!
  • 中小企业应用上云专场 产品组合下单即享折上9折起,助力企业快速上云
  • 息壤高校钜惠活动 NEW 天翼云息壤杯高校AI大赛,数款产品享受线上订购超值特惠
  • 天翼云电脑专场 HOT 移动办公新选择,爆款4核8G畅享1年3.5折起,快来抢购!
  • 天翼云奖励推广计划 加入成为云推官,推荐新用户注册下单得现金奖励
免费活动
  • 免费试用中心 HOT 多款云产品免费试用,快来开启云上之旅
  • 天翼云用户体验官 NEW 您的洞察,重塑科技边界

智算服务

打造统一的产品能力,实现算网调度、训练推理、技术架构、资源管理一体化智算服务
智算云(DeepSeek专区)
科研助手
  • 算力商城
  • 应用商城
  • 开发机
  • 并行计算
算力互联调度平台
  • 应用市场
  • 算力市场
  • 算力调度推荐
一站式智算服务平台
  • 模型广场
  • 体验中心
  • 服务接入
智算一体机
  • 智算一体机
大模型
  • DeepSeek-R1-昇腾版(671B)
  • DeepSeek-R1-英伟达版(671B)
  • DeepSeek-V3-昇腾版(671B)
  • DeepSeek-R1-Distill-Llama-70B
  • DeepSeek-R1-Distill-Qwen-32B
  • Qwen2-72B-Instruct
  • StableDiffusion-V2.1
  • TeleChat-12B

应用商城

天翼云精选行业优秀合作伙伴及千余款商品,提供一站式云上应用服务
进入甄选商城进入云市场创新解决方案
办公协同
  • WPS云文档
  • 安全邮箱
  • EMM手机管家
  • 智能商业平台
财务管理
  • 工资条
  • 税务风控云
企业应用
  • 翼信息化运维服务
  • 翼视频云归档解决方案
工业能源
  • 智慧工厂_生产流程管理解决方案
  • 智慧工地
建站工具
  • SSL证书
  • 新域名服务
网络工具
  • 翼云加速
灾备迁移
  • 云管家2.0
  • 翼备份
资源管理
  • 全栈混合云敏捷版(软件)
  • 全栈混合云敏捷版(一体机)
行业应用
  • 翼电子教室
  • 翼智慧显示一体化解决方案

合作伙伴

天翼云携手合作伙伴,共创云上生态,合作共赢
天翼云生态合作中心
  • 天翼云生态合作中心
天翼云渠道合作伙伴
  • 天翼云代理渠道合作伙伴
天翼云服务合作伙伴
  • 天翼云集成商交付能力认证
天翼云应用合作伙伴
  • 天翼云云市场合作伙伴
  • 天翼云甄选商城合作伙伴
天翼云技术合作伙伴
  • 天翼云OpenAPI中心
  • 天翼云EasyCoding平台
天翼云培训认证
  • 天翼云学堂
  • 天翼云市场商学院
天翼云合作计划
  • 云汇计划
天翼云东升计划
  • 适配中心
  • 东升计划
  • 适配互认证

开发者

开发者相关功能入口汇聚
技术社区
  • 专栏文章
  • 互动问答
  • 技术视频
资源与工具
  • OpenAPI中心
开放能力
  • EasyCoding敏捷开发平台
培训与认证
  • 天翼云学堂
  • 天翼云认证
魔乐社区
  • 魔乐社区

支持与服务

为您提供全方位支持与服务,全流程技术保障,助您轻松上云,安全无忧
文档与工具
  • 文档中心
  • 新手上云
  • 自助服务
  • OpenAPI中心
定价
  • 价格计算器
  • 定价策略
基础服务
  • 售前咨询
  • 在线支持
  • 在线支持
  • 工单服务
  • 建议与反馈
  • 用户体验官
  • 服务保障
  • 客户公告
  • 会员中心
增值服务
  • 红心服务
  • 首保服务
  • 客户支持计划
  • 专家技术服务
  • 备案管家

了解天翼云

天翼云秉承央企使命,致力于成为数字经济主力军,投身科技强国伟大事业,为用户提供安全、普惠云服务
品牌介绍
  • 关于天翼云
  • 智算云
  • 天翼云4.0
  • 新闻资讯
  • 天翼云APP
基础设施
  • 全球基础设施
  • 信任中心
最佳实践
  • 精选案例
  • 超级探访
  • 云杂志
  • 分析师和白皮书
  • 天翼云·创新直播间
市场活动
  • 2025智能云生态大会
  • 2024智算云生态大会
  • 2023云生态大会
  • 2022云生态大会
  • 天翼云中国行
天翼云
  • 活动
  • 智算服务
  • 产品
  • 解决方案
  • 应用商城
  • 合作伙伴
  • 开发者
  • 支持与服务
  • 了解天翼云
      • 文档
      • 控制中心
      • 备案
      • 管理中心

      NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

      首页 知识中心 存储 文章详情页

      NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

      2023-07-06 09:39:23 阅读次数:430

      hdfs,json,mysql

      本文是在6、NIFI综合应用场景-离线同步Mysql数据到HDFS中基础上完成的,仅仅是将上文中的json数据转成txt文件。本文仅列出了和该示例增加的部分,其他的则没有变化。
      本文前置条件是mysql、hadoop、nifi、hive和hue环境运行正常。如果没有hive或hue环境,则可通过查看hadoop的文件数据即可。
      本分分为四部分,即实现流程、处理器说明、操作和验证。

      一、实现流程

      1、模板

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <template encoding-version="1.2">
          <description></description>
          <groupId>34bb2ec3-0186-1000-0000-00006aa1300a</groupId>
          <name>Mysql_Hdfs_replace</name>
          <snippet>
              <connections>
                  <id>00e9c3d4-1d6c-34c5-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>ec9cd04c-b93f-3c21-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_INACTIVE</loadBalanceStatus>
                  <loadBalanceStrategy>ROUND_ROBIN</loadBalanceStrategy>
                  <name>Q_C</name>
                  <selectedRelationships>success</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>df6b3226-a4c1-300f-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>04c2abc1-92ba-3fb9-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>d554635b-4984-31af-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
                  <loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
                  <name></name>
                  <selectedRelationships>failure</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>ec9cd04c-b93f-3c21-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>0a66705b-f2c8-35b1-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>07400794-0659-3efe-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
                  <loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
                  <name>R_P</name>
                  <selectedRelationships>success</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>4c839042-f10c-313e-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>155f51cd-a0a5-3fd4-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>caf57854-0eff-3d22-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_INACTIVE</loadBalanceStatus>
                  <loadBalanceStrategy>ROUND_ROBIN</loadBalanceStrategy>
                  <name>C_S</name>
                  <selectedRelationships>success</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>ec9cd04c-b93f-3c21-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>3fda3197-9ec4-3d2f-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>d554635b-4984-31af-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
                  <loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
                  <name></name>
                  <selectedRelationships>failure</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>caf57854-0eff-3d22-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>43cda33e-7b67-34ea-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>4c839042-f10c-313e-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
                  <loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
                  <name>E_R</name>
                  <selectedRelationships>matched</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>3ee738a1-bea1-3a92-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>4f9b64c4-e136-3188-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>d554635b-4984-31af-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
                  <loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
                  <name></name>
                  <selectedRelationships>failure</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>4c839042-f10c-313e-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>beb7e986-0351-3abc-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>d554635b-4984-31af-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
                  <loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
                  <name></name>
                  <selectedRelationships>failure</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>07400794-0659-3efe-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>c3b234bd-9990-3eb2-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>d554635b-4984-31af-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
                  <loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
                  <name></name>
                  <selectedRelationships>success</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>df6b3226-a4c1-300f-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>d09dac25-4157-3743-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>d554635b-4984-31af-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
                  <loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
                  <name>E_L</name>
                  <selectedRelationships>failure</selectedRelationships>
                  <selectedRelationships>unmatched</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>3ee738a1-bea1-3a92-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <connections>
                  <id>ef9dd0e8-996a-3142-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
                  <backPressureObjectThreshold>10000</backPressureObjectThreshold>
                  <destination>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>3ee738a1-bea1-3a92-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </destination>
                  <flowFileExpiration>0 sec</flowFileExpiration>
                  <labelIndex>1</labelIndex>
                  <loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
                  <loadBalancePartitionAttribute></loadBalancePartitionAttribute>
                  <loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
                  <loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
                  <name>S_E</name>
                  <selectedRelationships>original</selectedRelationships>
                  <selectedRelationships>split</selectedRelationships>
                  <source>
                      <groupId>01a24222-073e-3a50-0000-000000000000</groupId>
                      <id>caf57854-0eff-3d22-0000-000000000000</id>
                      <type>PROCESSOR</type>
                  </source>
                  <zIndex>0</zIndex>
              </connections>
              <controllerServices>
                  <id>92d8aa93-71a2-3d31-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <bundle>
                      <artifact>nifi-dbcp-service-nar</artifact>
                      <group>org.apache.nifi</group>
                      <version>1.9.2</version>
                  </bundle>
                  <comments></comments>
                  <descriptors>
                      <entry>
                          <key>Database Connection URL</key>
                          <value>
                              <name>Database Connection URL</name>
                          </value>
                      </entry>
                      <entry>
                          <key>Database Driver Class Name</key>
                          <value>
                              <name>Database Driver Class Name</name>
                          </value>
                      </entry>
                      <entry>
                          <key>database-driver-locations</key>
                          <value>
                              <name>database-driver-locations</name>
                          </value>
                      </entry>
                      <entry>
                          <key>kerberos-credentials-service</key>
                          <value>
                              <identifiesControllerService>org.apache.nifi.kerberos.KerberosCredentialsService</identifiesControllerService>
                              <name>kerberos-credentials-service</name>
                          </value>
                      </entry>
                      <entry>
                          <key>Database User</key>
                          <value>
                              <name>Database User</name>
                          </value>
                      </entry>
                      <entry>
                          <key>Password</key>
                          <value>
                              <name>Password</name>
                          </value>
                      </entry>
                      <entry>
                          <key>Max Wait Time</key>
                          <value>
                              <name>Max Wait Time</name>
                          </value>
                      </entry>
                      <entry>
                          <key>Max Total Connections</key>
                          <value>
                              <name>Max Total Connections</name>
                          </value>
                      </entry>
                      <entry>
                          <key>Validation-query</key>
                          <value>
                              <name>Validation-query</name>
                          </value>
                      </entry>
                      <entry>
                          <key>dbcp-min-idle-conns</key>
                          <value>
                              <name>dbcp-min-idle-conns</name>
                          </value>
                      </entry>
                      <entry>
                          <key>dbcp-max-idle-conns</key>
                          <value>
                              <name>dbcp-max-idle-conns</name>
                          </value>
                      </entry>
                      <entry>
                          <key>dbcp-max-conn-lifetime</key>
                          <value>
                              <name>dbcp-max-conn-lifetime</name>
                          </value>
                      </entry>
                      <entry>
                          <key>dbcp-time-between-eviction-runs</key>
                          <value>
                              <name>dbcp-time-between-eviction-runs</name>
                          </value>
                      </entry>
                      <entry>
                          <key>dbcp-min-evictable-idle-time</key>
                          <value>
                              <name>dbcp-min-evictable-idle-time</name>
                          </value>
                      </entry>
                      <entry>
                          <key>dbcp-soft-min-evictable-idle-time</key>
                          <value>
                              <name>dbcp-soft-min-evictable-idle-time</name>
                          </value>
                      </entry>
                  </descriptors>
                  <name>MySQL_ConnectionPool</name>
                  <persistsState>false</persistsState>
                  <properties>
                      <entry>
                          <key>Database Connection URL</key>
                          <value>jdbc:mysql://192.168.10.44:3306/test?characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true</value>
                      </entry>
                      <entry>
                          <key>Database Driver Class Name</key>
                          <value>com.mysql.jdbc.Driver</value>
                      </entry>
                      <entry>
                          <key>database-driver-locations</key>
                          <value>/usr/local/bigdata/testdata/mysql-connector-java-5.1.44.jar</value>
                      </entry>
                      <entry>
                          <key>kerberos-credentials-service</key>
                      </entry>
                      <entry>
                          <key>Database User</key>
                          <value>root</value>
                      </entry>
                      <entry>
                          <key>Password</key>
                      </entry>
                      <entry>
                          <key>Max Wait Time</key>
                          <value>500 millis</value>
                      </entry>
                      <entry>
                          <key>Max Total Connections</key>
                          <value>8</value>
                      </entry>
                      <entry>
                          <key>Validation-query</key>
                      </entry>
                      <entry>
                          <key>dbcp-min-idle-conns</key>
                          <value>0</value>
                      </entry>
                      <entry>
                          <key>dbcp-max-idle-conns</key>
                          <value>8</value>
                      </entry>
                      <entry>
                          <key>dbcp-max-conn-lifetime</key>
                          <value>-1</value>
                      </entry>
                      <entry>
                          <key>dbcp-time-between-eviction-runs</key>
                          <value>-1</value>
                      </entry>
                      <entry>
                          <key>dbcp-min-evictable-idle-time</key>
                          <value>30 mins</value>
                      </entry>
                      <entry>
                          <key>dbcp-soft-min-evictable-idle-time</key>
                          <value>-1</value>
                      </entry>
                  </properties>
                  <state>ENABLED</state>
                  <type>org.apache.nifi.dbcp.DBCPConnectionPool</type>
              </controllerServices>
              <processors>
                  <id>07400794-0659-3efe-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <position>
                      <x>0.0</x>
                      <y>1044.726806640625</y>
                  </position>
                  <bundle>
                      <artifact>nifi-hadoop-nar</artifact>
                      <group>org.apache.nifi</group>
                      <version>1.9.2</version>
                  </bundle>
                  <config>
                      <bulletinLevel>WARN</bulletinLevel>
                      <comments></comments>
                      <concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
                      <descriptors>
                          <entry>
                              <key>Hadoop Configuration Resources</key>
                              <value>
                                  <name>Hadoop Configuration Resources</name>
                              </value>
                          </entry>
                          <entry>
                              <key>kerberos-credentials-service</key>
                              <value>
                                  <identifiesControllerService>org.apache.nifi.kerberos.KerberosCredentialsService</identifiesControllerService>
                                  <name>kerberos-credentials-service</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Kerberos Principal</key>
                              <value>
                                  <name>Kerberos Principal</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Kerberos Keytab</key>
                              <value>
                                  <name>Kerberos Keytab</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Kerberos Relogin Period</key>
                              <value>
                                  <name>Kerberos Relogin Period</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Additional Classpath Resources</key>
                              <value>
                                  <name>Additional Classpath Resources</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Directory</key>
                              <value>
                                  <name>Directory</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Conflict Resolution Strategy</key>
                              <value>
                                  <name>Conflict Resolution Strategy</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Block Size</key>
                              <value>
                                  <name>Block Size</name>
                              </value>
                          </entry>
                          <entry>
                              <key>IO Buffer Size</key>
                              <value>
                                  <name>IO Buffer Size</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Replication</key>
                              <value>
                                  <name>Replication</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Permissions umask</key>
                              <value>
                                  <name>Permissions umask</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Remote Owner</key>
                              <value>
                                  <name>Remote Owner</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Remote Group</key>
                              <value>
                                  <name>Remote Group</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Compression codec</key>
                              <value>
                                  <name>Compression codec</name>
                              </value>
                          </entry>
                      </descriptors>
                      <executionNode>ALL</executionNode>
                      <lossTolerant>false</lossTolerant>
                      <penaltyDuration>30 sec</penaltyDuration>
                      <properties>
                          <entry>
                              <key>Hadoop Configuration Resources</key>
                              <value>/usr/local/bigdata/hadoop-3.1.4/etc/hadoop/hdfs-site.xml,/usr/local/bigdata/hadoop-3.1.4/etc/hadoop/core-site.xml</value>
                          </entry>
                          <entry>
                              <key>kerberos-credentials-service</key>
                          </entry>
                          <entry>
                              <key>Kerberos Principal</key>
                          </entry>
                          <entry>
                              <key>Kerberos Keytab</key>
                          </entry>
                          <entry>
                              <key>Kerberos Relogin Period</key>
                              <value>4 hours</value>
                          </entry>
                          <entry>
                              <key>Additional Classpath Resources</key>
                              <value>/usr/local/bigdata/testdata/hadoop-lzo-0.4.21-SNAPSHOT.jar</value>
                          </entry>
                          <entry>
                              <key>Directory</key>
                              <value>/user/hive/warehouse/test.db/testuser</value>
                          </entry>
                          <entry>
                              <key>Conflict Resolution Strategy</key>
                              <value>append</value>
                          </entry>
                          <entry>
                              <key>Block Size</key>
                          </entry>
                          <entry>
                              <key>IO Buffer Size</key>
                          </entry>
                          <entry>
                              <key>Replication</key>
                          </entry>
                          <entry>
                              <key>Permissions umask</key>
                          </entry>
                          <entry>
                              <key>Remote Owner</key>
                          </entry>
                          <entry>
                              <key>Remote Group</key>
                          </entry>
                          <entry>
                              <key>Compression codec</key>
                              <value>LZO</value>
                          </entry>
                      </properties>
                      <runDurationMillis>0</runDurationMillis>
                      <schedulingPeriod>0 sec</schedulingPeriod>
                      <schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
                      <yieldDuration>1 sec</yieldDuration>
                  </config>
                  <executionNodeRestricted>false</executionNodeRestricted>
                  <name>PutHDFS_Demo</name>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>failure</name>
                  </relationships>
                  <relationships>
                      <autoTerminate>true</autoTerminate>
                      <name>success</name>
                  </relationships>
                  <state>STOPPED</state>
                  <style/>
                  <type>org.apache.nifi.processors.hadoop.PutHDFS</type>
              </processors>
              <processors>
                  <id>3ee738a1-bea1-3a92-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <position>
                      <x>4.637380919756993</x>
                      <y>625.7774307668278</y>
                  </position>
                  <bundle>
                      <artifact>nifi-standard-nar</artifact>
                      <group>org.apache.nifi</group>
                      <version>1.9.2</version>
                  </bundle>
                  <config>
                      <bulletinLevel>WARN</bulletinLevel>
                      <comments></comments>
                      <concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
                      <descriptors>
                          <entry>
                              <key>Destination</key>
                              <value>
                                  <name>Destination</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Return Type</key>
                              <value>
                                  <name>Return Type</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Path Not Found Behavior</key>
                              <value>
                                  <name>Path Not Found Behavior</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Null Value Representation</key>
                              <value>
                                  <name>Null Value Representation</name>
                              </value>
                          </entry>
                          <entry>
                              <key>amount</key>
                              <value>
                                  <name>amount</name>
                              </value>
                          </entry>
                          <entry>
                              <key>channelid</key>
                              <value>
                                  <name>channelid</name>
                              </value>
                          </entry>
                          <entry>
                              <key>channelname</key>
                              <value>
                                  <name>channelname</name>
                              </value>
                          </entry>
                          <entry>
                              <key>date1</key>
                              <value>
                                  <name>date1</name>
                              </value>
                          </entry>
                          <entry>
                              <key>id</key>
                              <value>
                                  <name>id</name>
                              </value>
                          </entry>
                          <entry>
                              <key>price</key>
                              <value>
                                  <name>price</name>
                              </value>
                          </entry>
                          <entry>
                              <key>productid</key>
                              <value>
                                  <name>productid</name>
                              </value>
                          </entry>
                          <entry>
                              <key>productname</key>
                              <value>
                                  <name>productname</name>
                              </value>
                          </entry>
                          <entry>
                              <key>regionid</key>
                              <value>
                                  <name>regionid</name>
                              </value>
                          </entry>
                          <entry>
                              <key>regionname</key>
                              <value>
                                  <name>regionname</name>
                              </value>
                          </entry>
                      </descriptors>
                      <executionNode>ALL</executionNode>
                      <lossTolerant>false</lossTolerant>
                      <penaltyDuration>30 sec</penaltyDuration>
                      <properties>
                          <entry>
                              <key>Destination</key>
                              <value>flowfile-attribute</value>
                          </entry>
                          <entry>
                              <key>Return Type</key>
                              <value>auto-detect</value>
                          </entry>
                          <entry>
                              <key>Path Not Found Behavior</key>
                              <value>ignore</value>
                          </entry>
                          <entry>
                              <key>Null Value Representation</key>
                              <value>empty string</value>
                          </entry>
                          <entry>
                              <key>amount</key>
                              <value>$.amount</value>
                          </entry>
                          <entry>
                              <key>channelid</key>
                              <value>$.channelid</value>
                          </entry>
                          <entry>
                              <key>channelname</key>
                              <value>$.channelname</value>
                          </entry>
                          <entry>
                              <key>date1</key>
                              <value>$.date1</value>
                          </entry>
                          <entry>
                              <key>id</key>
                              <value>$.id</value>
                          </entry>
                          <entry>
                              <key>price</key>
                              <value>$.price</value>
                          </entry>
                          <entry>
                              <key>productid</key>
                              <value>$.productid</value>
                          </entry>
                          <entry>
                              <key>productname</key>
                              <value>$.productname</value>
                          </entry>
                          <entry>
                              <key>regionid</key>
                              <value>$.regionid</value>
                          </entry>
                          <entry>
                              <key>regionname</key>
                              <value>$.regionname</value>
                          </entry>
                      </properties>
                      <runDurationMillis>0</runDurationMillis>
                      <schedulingPeriod>0 sec</schedulingPeriod>
                      <schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
                      <yieldDuration>1 sec</yieldDuration>
                  </config>
                  <executionNodeRestricted>false</executionNodeRestricted>
                  <name>EvaluateJsonPath</name>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>failure</name>
                  </relationships>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>matched</name>
                  </relationships>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>unmatched</name>
                  </relationships>
                  <state>STOPPED</state>
                  <style/>
                  <type>org.apache.nifi.processors.standard.EvaluateJsonPath</type>
              </processors>
              <processors>
                  <id>4c839042-f10c-313e-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <position>
                      <x>1.5301540524440043</x>
                      <y>833.9638161676247</y>
                  </position>
                  <bundle>
                      <artifact>nifi-standard-nar</artifact>
                      <group>org.apache.nifi</group>
                      <version>1.9.2</version>
                  </bundle>
                  <config>
                      <bulletinLevel>WARN</bulletinLevel>
                      <comments></comments>
                      <concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
                      <descriptors>
                          <entry>
                              <key>Regular Expression</key>
                              <value>
                                  <name>Regular Expression</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Replacement Value</key>
                              <value>
                                  <name>Replacement Value</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Character Set</key>
                              <value>
                                  <name>Character Set</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Maximum Buffer Size</key>
                              <value>
                                  <name>Maximum Buffer Size</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Replacement Strategy</key>
                              <value>
                                  <name>Replacement Strategy</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Evaluation Mode</key>
                              <value>
                                  <name>Evaluation Mode</name>
                              </value>
                          </entry>
                      </descriptors>
                      <executionNode>ALL</executionNode>
                      <lossTolerant>false</lossTolerant>
                      <penaltyDuration>30 sec</penaltyDuration>
                      <properties>
                          <entry>
                              <key>Regular Expression</key>
                              <value>(?s)(^.*$)</value>
                          </entry>
                          <entry>
                              <key>Replacement Value</key>
                              <value>${id},${date1},${channelid},${productid},${regionid},${amount},${price},${channelname},${productname},${regionname}</value>
                          </entry>
                          <entry>
                              <key>Character Set</key>
                              <value>UTF-8</value>
                          </entry>
                          <entry>
                              <key>Maximum Buffer Size</key>
                              <value>1 MB</value>
                          </entry>
                          <entry>
                              <key>Replacement Strategy</key>
                              <value>Regex Replace</value>
                          </entry>
                          <entry>
                              <key>Evaluation Mode</key>
                              <value>Line-by-Line</value>
                          </entry>
                      </properties>
                      <runDurationMillis>0</runDurationMillis>
                      <schedulingPeriod>0 sec</schedulingPeriod>
                      <schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
                      <yieldDuration>1 sec</yieldDuration>
                  </config>
                  <executionNodeRestricted>false</executionNodeRestricted>
                  <name>ReplaceText</name>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>failure</name>
                  </relationships>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>success</name>
                  </relationships>
                  <state>STOPPED</state>
                  <style/>
                  <type>org.apache.nifi.processors.standard.ReplaceText</type>
              </processors>
              <processors>
                  <id>caf57854-0eff-3d22-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <position>
                      <x>8.582122802734375</x>
                      <y>408.520751953125</y>
                  </position>
                  <bundle>
                      <artifact>nifi-standard-nar</artifact>
                      <group>org.apache.nifi</group>
                      <version>1.9.2</version>
                  </bundle>
                  <config>
                      <bulletinLevel>WARN</bulletinLevel>
                      <comments></comments>
                      <concurrentlySchedulableTaskCount>3</concurrentlySchedulableTaskCount>
                      <descriptors>
                          <entry>
                              <key>JsonPath Expression</key>
                              <value>
                                  <name>JsonPath Expression</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Null Value Representation</key>
                              <value>
                                  <name>Null Value Representation</name>
                              </value>
                          </entry>
                      </descriptors>
                      <executionNode>ALL</executionNode>
                      <lossTolerant>false</lossTolerant>
                      <penaltyDuration>30 sec</penaltyDuration>
                      <properties>
                          <entry>
                              <key>JsonPath Expression</key>
                              <value>$.*</value>
                          </entry>
                          <entry>
                              <key>Null Value Representation</key>
                              <value>empty string</value>
                          </entry>
                      </properties>
                      <runDurationMillis>0</runDurationMillis>
                      <schedulingPeriod>0 sec</schedulingPeriod>
                      <schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
                      <yieldDuration>1 sec</yieldDuration>
                  </config>
                  <executionNodeRestricted>false</executionNodeRestricted>
                  <name>SplitJson_Demo</name>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>failure</name>
                  </relationships>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>original</name>
                  </relationships>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>split</name>
                  </relationships>
                  <state>STOPPED</state>
                  <style/>
                  <type>org.apache.nifi.processors.standard.SplitJson</type>
              </processors>
              <processors>
                  <id>d554635b-4984-31af-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <position>
                      <x>767.6406733409717</x>
                      <y>649.5637561165618</y>
                  </position>
                  <bundle>
                      <artifact>nifi-standard-nar</artifact>
                      <group>org.apache.nifi</group>
                      <version>1.9.2</version>
                  </bundle>
                  <config>
                      <bulletinLevel>WARN</bulletinLevel>
                      <comments></comments>
                      <concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
                      <descriptors>
                          <entry>
                              <key>Log Level</key>
                              <value>
                                  <name>Log Level</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Log Payload</key>
                              <value>
                                  <name>Log Payload</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Attributes to Log</key>
                              <value>
                                  <name>Attributes to Log</name>
                              </value>
                          </entry>
                          <entry>
                              <key>attributes-to-log-regex</key>
                              <value>
                                  <name>attributes-to-log-regex</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Attributes to Ignore</key>
                              <value>
                                  <name>Attributes to Ignore</name>
                              </value>
                          </entry>
                          <entry>
                              <key>attributes-to-ignore-regex</key>
                              <value>
                                  <name>attributes-to-ignore-regex</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Log prefix</key>
                              <value>
                                  <name>Log prefix</name>
                              </value>
                          </entry>
                          <entry>
                              <key>character-set</key>
                              <value>
                                  <name>character-set</name>
                              </value>
                          </entry>
                      </descriptors>
                      <executionNode>ALL</executionNode>
                      <lossTolerant>false</lossTolerant>
                      <penaltyDuration>30 sec</penaltyDuration>
                      <properties>
                          <entry>
                              <key>Log Level</key>
                              <value>info</value>
                          </entry>
                          <entry>
                              <key>Log Payload</key>
                              <value>false</value>
                          </entry>
                          <entry>
                              <key>Attributes to Log</key>
                          </entry>
                          <entry>
                              <key>attributes-to-log-regex</key>
                              <value>.*</value>
                          </entry>
                          <entry>
                              <key>Attributes to Ignore</key>
                          </entry>
                          <entry>
                              <key>attributes-to-ignore-regex</key>
                          </entry>
                          <entry>
                              <key>Log prefix</key>
                          </entry>
                          <entry>
                              <key>character-set</key>
                              <value>UTF-8</value>
                          </entry>
                      </properties>
                      <runDurationMillis>0</runDurationMillis>
                      <schedulingPeriod>0 sec</schedulingPeriod>
                      <schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
                      <yieldDuration>1 sec</yieldDuration>
                  </config>
                  <executionNodeRestricted>false</executionNodeRestricted>
                  <name>LogAttribute——demo</name>
                  <relationships>
                      <autoTerminate>true</autoTerminate>
                      <name>success</name>
                  </relationships>
                  <state>STOPPED</state>
                  <style/>
                  <type>org.apache.nifi.processors.standard.LogAttribute</type>
              </processors>
              <processors>
                  <id>df6b3226-a4c1-300f-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <position>
                      <x>10.83941650390625</x>
                      <y>0.0</y>
                  </position>
                  <bundle>
                      <artifact>nifi-standard-nar</artifact>
                      <group>org.apache.nifi</group>
                      <version>1.9.2</version>
                  </bundle>
                  <config>
                      <bulletinLevel>WARN</bulletinLevel>
                      <comments></comments>
                      <concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
                      <descriptors>
                          <entry>
                              <key>Database Connection Pooling Service</key>
                              <value>
                                  <identifiesControllerService>org.apache.nifi.dbcp.DBCPService</identifiesControllerService>
                                  <name>Database Connection Pooling Service</name>
                              </value>
                          </entry>
                          <entry>
                              <key>db-fetch-db-type</key>
                              <value>
                                  <name>db-fetch-db-type</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Table Name</key>
                              <value>
                                  <name>Table Name</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Columns to Return</key>
                              <value>
                                  <name>Columns to Return</name>
                              </value>
                          </entry>
                          <entry>
                              <key>db-fetch-where-clause</key>
                              <value>
                                  <name>db-fetch-where-clause</name>
                              </value>
                          </entry>
                          <entry>
                              <key>db-fetch-sql-query</key>
                              <value>
                                  <name>db-fetch-sql-query</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Maximum-value Columns</key>
                              <value>
                                  <name>Maximum-value Columns</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Max Wait Time</key>
                              <value>
                                  <name>Max Wait Time</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Fetch Size</key>
                              <value>
                                  <name>Fetch Size</name>
                              </value>
                          </entry>
                          <entry>
                              <key>qdbt-max-rows</key>
                              <value>
                                  <name>qdbt-max-rows</name>
                              </value>
                          </entry>
                          <entry>
                              <key>qdbt-output-batch-size</key>
                              <value>
                                  <name>qdbt-output-batch-size</name>
                              </value>
                          </entry>
                          <entry>
                              <key>qdbt-max-frags</key>
                              <value>
                                  <name>qdbt-max-frags</name>
                              </value>
                          </entry>
                          <entry>
                              <key>dbf-normalize</key>
                              <value>
                                  <name>dbf-normalize</name>
                              </value>
                          </entry>
                          <entry>
                              <key>transaction-isolation-level</key>
                              <value>
                                  <name>transaction-isolation-level</name>
                              </value>
                          </entry>
                          <entry>
                              <key>dbf-user-logical-types</key>
                              <value>
                                  <name>dbf-user-logical-types</name>
                              </value>
                          </entry>
                          <entry>
                              <key>dbf-default-precision</key>
                              <value>
                                  <name>dbf-default-precision</name>
                              </value>
                          </entry>
                          <entry>
                              <key>dbf-default-scale</key>
                              <value>
                                  <name>dbf-default-scale</name>
                              </value>
                          </entry>
                      </descriptors>
                      <executionNode>PRIMARY</executionNode>
                      <lossTolerant>false</lossTolerant>
                      <penaltyDuration>30 sec</penaltyDuration>
                      <properties>
                          <entry>
                              <key>Database Connection Pooling Service</key>
                              <value>92d8aa93-71a2-3d31-0000-000000000000</value>
                          </entry>
                          <entry>
                              <key>db-fetch-db-type</key>
                              <value>MySQL</value>
                          </entry>
                          <entry>
                              <key>Table Name</key>
                              <value>dm_sales</value>
                          </entry>
                          <entry>
                              <key>Columns to Return</key>
                          </entry>
                          <entry>
                              <key>db-fetch-where-clause</key>
                          </entry>
                          <entry>
                              <key>db-fetch-sql-query</key>
                              <value>select * from dm_sales</value>
                          </entry>
                          <entry>
                              <key>Maximum-value Columns</key>
                          </entry>
                          <entry>
                              <key>Max Wait Time</key>
                              <value>0 seconds</value>
                          </entry>
                          <entry>
                              <key>Fetch Size</key>
                              <value>0</value>
                          </entry>
                          <entry>
                              <key>qdbt-max-rows</key>
                              <value>0</value>
                          </entry>
                          <entry>
                              <key>qdbt-output-batch-size</key>
                              <value>0</value>
                          </entry>
                          <entry>
                              <key>qdbt-max-frags</key>
                              <value>0</value>
                          </entry>
                          <entry>
                              <key>dbf-normalize</key>
                              <value>false</value>
                          </entry>
                          <entry>
                              <key>transaction-isolation-level</key>
                          </entry>
                          <entry>
                              <key>dbf-user-logical-types</key>
                              <value>false</value>
                          </entry>
                          <entry>
                              <key>dbf-default-precision</key>
                              <value>10</value>
                          </entry>
                          <entry>
                              <key>dbf-default-scale</key>
                              <value>0</value>
                          </entry>
                      </properties>
                      <runDurationMillis>0</runDurationMillis>
                      <schedulingPeriod>86400 sec</schedulingPeriod>
                      <schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
                      <yieldDuration>1 sec</yieldDuration>
                  </config>
                  <executionNodeRestricted>true</executionNodeRestricted>
                  <name>QueryDatabaseTable_demo</name>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>success</name>
                  </relationships>
                  <state>STOPPED</state>
                  <style/>
                  <type>org.apache.nifi.processors.standard.QueryDatabaseTable</type>
              </processors>
              <processors>
                  <id>ec9cd04c-b93f-3c21-0000-000000000000</id>
                  <parentGroupId>01a24222-073e-3a50-0000-000000000000</parentGroupId>
                  <position>
                      <x>11.83941650390625</x>
                      <y>203.5</y>
                  </position>
                  <bundle>
                      <artifact>nifi-avro-nar</artifact>
                      <group>org.apache.nifi</group>
                      <version>1.9.2</version>
                  </bundle>
                  <config>
                      <bulletinLevel>WARN</bulletinLevel>
                      <comments></comments>
                      <concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
                      <descriptors>
                          <entry>
                              <key>JSON container options</key>
                              <value>
                                  <name>JSON container options</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Wrap Single Record</key>
                              <value>
                                  <name>Wrap Single Record</name>
                              </value>
                          </entry>
                          <entry>
                              <key>Avro schema</key>
                              <value>
                                  <name>Avro schema</name>
                              </value>
                          </entry>
                      </descriptors>
                      <executionNode>ALL</executionNode>
                      <lossTolerant>false</lossTolerant>
                      <penaltyDuration>30 sec</penaltyDuration>
                      <properties>
                          <entry>
                              <key>JSON container options</key>
                              <value>array</value>
                          </entry>
                          <entry>
                              <key>Wrap Single Record</key>
                              <value>true</value>
                          </entry>
                          <entry>
                              <key>Avro schema</key>
                          </entry>
                      </properties>
                      <runDurationMillis>0</runDurationMillis>
                      <schedulingPeriod>0 sec</schedulingPeriod>
                      <schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
                      <yieldDuration>1 sec</yieldDuration>
                  </config>
                  <executionNodeRestricted>false</executionNodeRestricted>
                  <name>ConvertAvroToJSON_Demo</name>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>failure</name>
                  </relationships>
                  <relationships>
                      <autoTerminate>false</autoTerminate>
                      <name>success</name>
                  </relationships>
                  <state>STOPPED</state>
                  <style/>
                  <type>org.apache.nifi.processors.avro.ConvertAvroToJSON</type>
              </processors>
          </snippet>
          <timestamp>02/13/2023 02:25:32 GMT</timestamp>
      </template>

      2、处理流程

      QueryDatabaseTable ——> ConvertAvroToJSON ——> SplitJson ——> EvaluateJsonPath ——> ReplaceText ——> PutHDFS

      • 增加了EvaluateJsonPath和ReplaceText处理器,EvaluateJsonPath用来提取json中的属性,ReplaceText用来替换掉FlowFile中的内容
      • 将Json数据中的属性值提取出来
      • 转换为\t分割字段;\n分割行数据的格式

      二、处理器说明

      1、EvaluateJsonPath

      1)、描述

      该处理器根据流文件的内容计算一个或多个JsonPath表达式。这些表达式的结果被写入到FlowFile属性,或者写入到FlowFile本身的内容中,这取决于处理器的配置。通过添加用户自定义的属性来输入jsonpath,添加的属性的名称映射到输出流中的属性名称(如果目标是flowfile-attribute;否则,属性名将被忽略)。
      属性的值必须是有效的JsonPath表达式。
      “auto-detect”的返回类型将根据配置的目标进行确定。
      当“Destination”被设置为“flowfile-attribute”时,将使用“scalar”的返回类型。
      当“Destination”被设置为“flowfile-content”时,将使用“JSON”返回类型。
      如果JsonPath计算为JSON数组或JSON对象,并且返回类型设置为“scalar”,则流文件将不进行修改,并将路由到失败。
      如果所提供的JsonPath计算为指定的值,JSON的返回类型可以返回“scalar”。
      如果目标是“flowfile-content”,并且JsonPath没有计算到一个已定义的路径,那么流文件将被路由到“unmatched”,无需修改其内容。
      如果目标是“flowfile-attribute”,而表达式不匹配任何内容,那么将使用空字符串创建属性作为值,并且FlowFile将始终被路由到“matched”。

      2)、属性配置

      在下面的列表中,列出属性默认值(如果有默认值),以及属性是否支持表达式语言。

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

      3)、动态属性

      该处理器允许用户指定属性的名称和值。

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

      4)、应用场景

      通常当需要从流文件json中提取某些数据作为流属性时,使用此处理器;或者从流文件json内容中提取一部分内容作为下一个流文件内容,使用此处理器。

      2、ReplaceText

      1)、描述

      使用其他值替换匹配正则表达式的流文件部分内容,从而更新流文件的内容。

      2)、属性配置

      在下面的列表中,列出属性默认值(如果有默认值),以及属性是否支持表达式语言

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

      3)、应用场景

      使用正则表达式,来逐行或者全文本替换文件流内容,往往用于业务逻辑处理。

      三、操作

      1、创建EvaluateJsonPath并配置

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

       

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

      flowfile-attribute即为将变量放置在属性中;

      扩展属性就是我们读取到的Json属性。

      同时处理把Invalid警告处理掉

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

      2、验证EvaluateJsonPath

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

       

      虽然我们已经获取到了Json中的具体字段值,但是可以看到,FlowFile的内容还是Json。

      3、创建ReplaceText并配置

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

       

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

      4、验证ReplaceText

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

      四、验证

      本处验证仅仅是列出一些必要的步骤和最终结果。

      7、NIFI综合应用场景-将mysql查询出的json数据转换成txt后存储至HDFS中

       

      至此,完成了该示例。

      版权声明:本文内容来自第三方投稿或授权转载,原文地址:https://blog.51cto.com/alanchan2win/6280318,作者:一瓢一瓢的饮,版权归原作者所有。本网站转在其作品的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如因作品内容、版权等问题需要同本网站联系,请发邮件至ctyunbbs@chinatelecom.cn沟通。

      上一篇:mysql优化学习笔记

      下一篇:java虚拟机-垃圾收集器与内存分配策略学习笔记

      相关文章

      2025-05-14 10:33:25

      webpack5基础--01_基本使用

      webpack5基础--01_基本使用

      2025-05-14 10:33:25
      json , main , package , Webpack , 打包 , 文件 , 编译
      2025-05-14 10:33:16

      30天拿下Python之使用Json

      Json的英文全称为JavaScript Object Notation,中文为JavaScript对象表示法,是一种存储和交换文本信息的语法,类似XML。Json作为轻量级的文本数据交换格式,比XML更小、更快,更易解析,也更易于阅读和编写。

      2025-05-14 10:33:16
      json , Json , Python , 字符串 , 对象 , 序列化 , 转换
      2025-05-14 09:51:15

      python json反序列化为对象

      在Python中,将JSON数据反序列化为对象通常意味着将JSON格式的字符串转换为一个Python的数据结构(如列表、字典)或者一个自定义的类实例。

      2025-05-14 09:51:15
      json , JSON , Person , Python , 列表 , 字典 , 实例
      2025-05-13 09:49:27

      mysql一些小知识点

      mysql 使用的是三值逻辑:TRUE FALSE UNKNOWN。

      2025-05-13 09:49:27
      left , mod , mysql , null , select , user
      2025-05-12 08:40:18

      DataTable转JSON

      DataTable转JSON

      2025-05-12 08:40:18
      dataset , DataTable , json , JSON
      2025-05-08 09:04:49

      MySQL-备份+日志:介质故障与数据库恢复

      MySQL-备份+日志:介质故障与数据库恢复

      2025-05-08 09:04:49
      mysql , MySQL , 备份 , 恢复 , 数据库 , 文件 , 日志
      2025-05-08 09:03:29

      windows下mybatis插入mysql数据中文乱码问题解决

      windows下mybatis插入mysql数据中文乱码问题解决

      2025-05-08 09:03:29
      amp , ini , jdbc , mysql , 乱码
      2025-05-07 09:09:52

      基础—SQL—DCL(数据控制语言)之用户管理

      基础—SQL—DCL(数据控制语言)之用户管理

      2025-05-07 09:09:52
      mysql , 创建 , 数据库 , 权限 , 用户 , 访问
      2025-05-07 09:09:52

      基础—SQL—DCL(数据控制语言)小结

      基础—SQL—DCL(数据控制语言)小结

      2025-05-07 09:09:52
      mysql , SQL , 数据库 , 权限 , 用户 , 管理 , 语句
      2025-05-07 09:08:08

      基于servlet+jsp+mysql实现的java web校园车辆管理系统

      本项目是一套基于servlet+jsp+mysql实现的java web校园车辆管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的Java学习者。

      2025-05-07 09:08:08
      mysql , 信息 , 信息管理 , 添加 , 源码
      查看更多
      推荐标签

      作者介绍

      天翼云小翼
      天翼云用户

      文章

      33561

      阅读量

      5267115

      查看更多

      最新文章

      【mySQL】提升mysql性能的关键参数之innodb_buffer_pool_size、innodb_buffer_pool_instances

      2025-02-21 08:57:32

      MySQL——基础

      2025-02-10 08:56:25

      Redis7 数据双写一致性

      2024-10-23 08:55:37

      mysql列存储引擎-tianmu_ini_allowmysqlquerypath参数开启后的异常记录

      2024-09-25 10:15:01

      mysql列存储引擎-去除TempTableForSubquery引发的memcopy的策略

      2024-09-25 10:14:48

      mysql列存储引擎-POC-调用自定义函数-参数赋值

      2024-09-25 10:13:57

      查看更多

      热门文章

      mysql列存储引擎-POC-需求分析

      2023-05-09 06:03:25

      mysql存储引擎、数据导入导出、多表查询

      2023-04-23 09:34:48

      MySQL技术内幕 InnoDB存储引擎:B+树索引

      2023-05-10 06:03:26

      mysql表类型和存储引擎和视图

      2023-06-06 05:57:53

      mysql列存储引擎-POC-问题定位-索引相关

      2023-06-13 08:35:51

      2022-09-09 mysql列存储引擎-POC-需求分析-第二版-有问题的SQL

      2023-04-23 09:35:19

      查看更多

      热门标签

      存储 缓存 内存 数据库 数据 redis mysql 服务器 数据恢复 Redis linux java 链表 MySQL sql
      查看更多

      相关产品

      弹性云主机

      随时自助获取、弹性伸缩的云服务器资源

      天翼云电脑(公众版)

      便捷、安全、高效的云电脑服务

      对象存储

      高品质、低成本的云上存储服务

      云硬盘

      为云上计算资源提供持久性块存储

      查看更多

      随机文章

      2022-09-09 mysql列存储引擎-POC-需求分析-第二版-有问题的SQL

      《MySQL技术内幕:InnoDB存储引擎》读书笔记

      mysql列存储引擎-exists结果错误-问题分析

      MySQL技术内幕 InnoDB存储引擎:B+树索引的使用

      MySQL 数据库系列(五)-----索引、事务与存储引擎(Linux版)

      TODO-mysql列存储引擎-Q16-DEBUG模式下获取数据为空

      • 7*24小时售后
      • 无忧退款
      • 免费备案
      • 专家服务
      售前咨询热线
      400-810-9889转1
      关注天翼云
      • 旗舰店
      • 天翼云APP
      • 天翼云微信公众号
      服务与支持
      • 备案中心
      • 售前咨询
      • 智能客服
      • 自助服务
      • 工单管理
      • 客户公告
      • 涉诈举报
      账户管理
      • 管理中心
      • 订单管理
      • 余额管理
      • 发票管理
      • 充值汇款
      • 续费管理
      快速入口
      • 天翼云旗舰店
      • 文档中心
      • 最新活动
      • 免费试用
      • 信任中心
      • 天翼云学堂
      云网生态
      • 甄选商城
      • 渠道合作
      • 云市场合作
      了解天翼云
      • 关于天翼云
      • 天翼云APP
      • 服务案例
      • 新闻资讯
      • 联系我们
      热门产品
      • 云电脑
      • 弹性云主机
      • 云电脑政企版
      • 天翼云手机
      • 云数据库
      • 对象存储
      • 云硬盘
      • Web应用防火墙
      • 服务器安全卫士
      • CDN加速
      热门推荐
      • 云服务备份
      • 边缘安全加速平台
      • 全站加速
      • 安全加速
      • 云服务器
      • 云主机
      • 智能边缘云
      • 应用编排服务
      • 微服务引擎
      • 共享流量包
      更多推荐
      • web应用防火墙
      • 密钥管理
      • 等保咨询
      • 安全专区
      • 应用运维管理
      • 云日志服务
      • 文档数据库服务
      • 云搜索服务
      • 数据湖探索
      • 数据仓库服务
      友情链接
      • 中国电信集团
      • 189邮箱
      • 天翼企业云盘
      • 天翼云盘
      ©2025 天翼云科技有限公司版权所有 增值电信业务经营许可证A2.B1.B2-20090001
      公司地址:北京市东城区青龙胡同甲1号、3号2幢2层205-32室
      • 用户协议
      • 隐私政策
      • 个人信息保护
      • 法律声明
      备案 京公网安备11010802043424号 京ICP备 2021034386号