datax数据入库模板

目录

一、txt2hive

二、txt2mysql


一、txt2hive

{"setting": {},"job": {"setting": {"speed": {"channel": 4}},"errorLimit": {"percentage": 0.02},"content": [{"reader": {"name": "txtfilereader","parameter": {"path": ["D:\\datax_project\\datax\\zqykj\\sourceData"],"fileName": "","encoding": "UTF-8","column": [{"index": 0,"type": "string"},{"index": 1,"type": "string"},{"index": 2,"type": "string"},{"index": 3,"type": "string"},{"index": 4,"type": "string"},{"index": 5,"type": "string"},{"index": 6,"type": "string"},{"index": 7,"type": "string"},{"index": 8,"type": "string"},{"index": 9,"type": "string"},{"index": 10,"type": "string"},{"index": 11,"type": "string"},{"index": 12,"type": "string"},{"index": 13,"type": "string"},{"index": 14,"type": "string"},{"index": 15,"type": "string"},{"index": 16,"type": "string"},{"index": 17,"type": "string"},{"index": 18,"type": "string"},{"index": 19,"type": "string"},{"index": 20,"type": "string"},{"index": 21,"type": "string"},{"index": 22,"type": "string"},{"index": 23,"type": "string"},{"index": 24,"type": "string"},{"index": 25,"type": "string"},{"index": 26,"type": "string"},{"index": 27,"type": "string"},{"index": 28,"type": "string"},{"index": 29,"type": "string"},{"index": 30,"type": "string"},{"index": 31,"type": "string"},{"index": 32,"type": "string"},{"index": 33,"type": "string"},{"index": 34,"type": "string"},{"index": 35,"type": "string"},{"index": 36,"type": "string"},{"index": 37,"type": "string"},{"index": 38,"type": "string"},{"index": 39,"type": "string"},{"index": 40,"type": "string"},{"index": 41,"type": "string"},{"index": 42,"type": "string"},{"index": 43,"type": "string"},{"index": 44,"type": "string"},{"index": 45,"type": "string"},{"index": 46,"type": "string"},{"index": 47,"type": "string"},{"index": 48,"type": "string"},{"index": 49,"type": "string"},{"index": 50,"type": "string"},{"index": 51,"type": "string"},{"index": 52,"type": "string"},{"index": 53,"type": "string"},{"index": 54,"type": "string"},{"index": 55,"type": "string"},{"index": 56,"type": "string"},{"index": 57,"type": "string"},{"index": 58,"type": "string"},{"index": 59,"type": "string"},{"index": 60,"type": "string"},{"index": 61,"type": "string"},{"index": 62,"type": "string"},{"index": 63,"type": "string"},{"index": 64,"type": "string"},{"index": 65,"type": "string"},{"index": 66,"type": "string"},{"index": 67,"type": "string"},{"index": 68,"type": "string"},{"index": 69,"type": "string"},{"index": 70,"type": "string"},{"index": 71,"type": "string"},{"index": 72,"type": "string"},{"index": 73,"type": "string"},{"index": 74,"type": "string"},{"index": 75,"type": "string"},{"index": 76,"type": "string"},{"index": 77,"type": "string"},{"index": 78,"type": "string"},{"index": 79,"type": "string"},{"index": 80,"type": "string"},{"index": 81,"type": "string"},{"index": 82,"type": "string"},{"index": 83,"type": "string"},{"index": 84,"type": "string"},{"index": 85,"type": "string"},{"index": 86,"type": "string"},{"index": 87,"type": "string"},{"index": 88,"type": "string"},{"index": 89,"type": "string"},{"index": 90,"type": "string"},{"index": 91,"type": "string"},{"index": 92,"type": "string"},{"index": 93,"type": "string"},{"index": 94,"type": "string"},{"index": 95,"type": "string"},{"index": 96,"type": "string"},{"index": 97,"type": "string"},{"index": 98,"type": "string"},{"index": 99,"type": "string"},{"index": 100,"type": "string"},{"index": 101,"type": "string"}],"fieldDelimiter": "|+|","fileFormat": "dat","nullFormat": "^(\\s*|\\s*\\.\\s*|null)$"}},"writer": {"name": "hdfswriter","parameter": {"defaultFS": "hdfs://172.30.6.5:8020","fieldDelimiter": "|","fileType": "ORC","path": "/user/hive/warehouse/jxpoc_dw.db/t2a_trans_init/","fileName": "t2a_trans_init","writeMode": "truncate","column": [{"index": 0,"type": "string"},{"index": 1,"type": "string"},{"index": 2,"type": "string"},{"index": 3,"type": "string"},{"index": 4,"type": "string"},{"index": 5,"type": "string"},{"index": 6,"type": "string"},{"index": 7,"type": "string"},{"index": 8,"type": "string"},{"index": 9,"type": "string"},{"index": 10,"type": "string"},{"index": 11,"type": "string"},{"index": 12,"type": "string"},{"index": 13,"type": "string"},{"index": 14,"type": "string"},{"index": 15,"type": "string"},{"index": 16,"type": "string"},{"index": 17,"type": "string"},{"index": 18,"type": "string"},{"index": 19,"type": "string"},{"index": 20,"type": "string"},{"index": 21,"type": "string"},{"index": 22,"type": "string"},{"index": 23,"type": "string"},{"index": 24,"type": "string"},{"index": 25,"type": "string"},{"index": 26,"type": "string"},{"index": 27,"type": "string"},{"index": 28,"type": "string"},{"index": 29,"type": "string"},{"index": 30,"type": "string"},{"index": 31,"type": "string"},{"index": 32,"type": "string"},{"index": 33,"type": "string"},{"index": 34,"type": "string"},{"index": 35,"type": "string"},{"index": 36,"type": "string"},{"index": 37,"type": "string"},{"index": 38,"type": "string"},{"index": 39,"type": "string"},{"index": 40,"type": "string"},{"index": 41,"type": "string"},{"index": 42,"type": "string"},{"index": 43,"type": "string"},{"index": 44,"type": "string"},{"index": 45,"type": "string"},{"index": 46,"type": "string"},{"index": 47,"type": "string"},{"index": 48,"type": "string"},{"index": 49,"type": "string"},{"index": 50,"type": "string"},{"index": 51,"type": "string"},{"index": 52,"type": "string"},{"index": 53,"type": "string"},{"index": 54,"type": "string"},{"index": 55,"type": "string"},{"index": 56,"type": "string"},{"index": 57,"type": "string"},{"index": 58,"type": "string"},{"index": 59,"type": "string"},{"index": 60,"type": "string"},{"index": 61,"type": "string"},{"index": 62,"type": "string"},{"index": 63,"type": "string"},{"index": 64,"type": "string"},{"index": 65,"type": "string"},{"index": 66,"type": "string"},{"index": 67,"type": "string"},{"index": 68,"type": "string"},{"index": 69,"type": "string"},{"index": 70,"type": "string"},{"index": 71,"type": "string"},{"index": 72,"type": "string"},{"index": 73,"type": "string"},{"index": 74,"type": "string"},{"index": 75,"type": "string"},{"index": 76,"type": "string"},{"index": 77,"type": "string"},{"index": 78,"type": "string"},{"index": 79,"type": "string"},{"index": 80,"type": "string"},{"index": 81,"type": "string"},{"index": 82,"type": "string"},{"index": 83,"type": "string"},{"index": 84,"type": "string"},{"index": 85,"type": "string"},{"index": 86,"type": "string"},{"index": 87,"type": "string"},{"index": 88,"type": "string"},{"index": 89,"type": "string"},{"index": 90,"type": "string"},{"index": 91,"type": "string"},{"index": 92,"type": "string"},{"index": 93,"type": "string"},{"index": 94,"type": "string"},{"index": 95,"type": "string"},{"index": 96,"type": "string"},{"index": 97,"type": "string"},{"index": 98,"type": "string"},{"index": 99,"type": "string"},{"index": 100,"type": "string"},{"index": 101,"type": "string"}],"tableName": null,"hdfsPath": null}}}]}
}

 

二、txt2mysql

{"setting": {},"job": {"setting": {"speed": {"channel": 4}},"errorLimit": {"percentage": 0.02},"content": [{"reader": {"name": "txtfilereader","parameter": {"path": ["C:/Users/dell/Desktop/history/"],"fileName": "P20210257_JS_FXQ_TRAN_20220827_0001.dat","encoding": "UTF-8","column": [{"index": 0,"type": "string"},{"index": 1,"type": "string"},{"index": 2,"type": "string"},{"index": 3,"type": "string"},{"index": 4,"type": "string"},{"index": 5,"type": "string"},{"index": 6,"type": "string"},{"index": 7,"type": "string"},{"index": 8,"type": "string"},{"index": 9,"type": "string"},{"index": 10,"type": "string"},{"index": 11,"type": "string"},{"index": 12,"type": "string"},{"index": 13,"type": "string"},{"index": 14,"type": "string"},{"index": 15,"type": "string"},{"index": 16,"type": "string"},{"index": 17,"type": "string"},{"index": 18,"type": "string"},{"index": 19,"type": "string"},{"index": 20,"type": "string"},{"index": 21,"type": "string"},{"index": 22,"type": "string"},{"index": 23,"type": "string"},{"index": 24,"type": "string"},{"index": 25,"type": "string"},{"index": 26,"type": "string"},{"index": 27,"type": "string"},{"index": 28,"type": "string"},{"index": 29,"type": "string"},{"index": 30,"type": "string"},{"index": 31,"type": "string"},{"index": 32,"type": "string"},{"index": 33,"type": "string"},{"index": 34,"type": "string"},{"index": 35,"type": "string"},{"index": 36,"type": "string"},{"index": 37,"type": "string"},{"index": 38,"type": "string"},{"index": 39,"type": "string"},{"index": 40,"type": "string"},{"index": 41,"type": "string"},{"index": 42,"type": "string"},{"index": 43,"type": "string"},{"index": 44,"type": "string"},{"index": 45,"type": "string"},{"index": 46,"type": "string"},{"index": 47,"type": "string"},{"index": 48,"type": "string"},{"index": 49,"type": "string"},{"index": 50,"type": "string"},{"index": 51,"type": "string"},{"index": 52,"type": "string"},{"index": 53,"type": "string"},{"index": 54,"type": "string"},{"index": 55,"type": "string"},{"index": 56,"type": "string"},{"index": 57,"type": "string"},{"index": 58,"type": "string"},{"index": 59,"type": "string"},{"index": 60,"type": "string"},{"index": 61,"type": "string"},{"index": 62,"type": "string"},{"index": 63,"type": "string"},{"index": 64,"type": "string"},{"index": 65,"type": "string"},{"index": 66,"type": "string"},{"index": 67,"type": "string"},{"index": 68,"type": "string"},{"index": 69,"type": "string"},{"index": 70,"type": "string"},{"index": 71,"type": "string"},{"index": 72,"type": "string"},{"index": 73,"type": "string"},{"index": 74,"type": "string"},{"index": 75,"type": "string"},{"index": 76,"type": "string"},{"index": 77,"type": "string"},{"index": 78,"type": "string"},{"index": 79,"type": "string"},{"index": 80,"type": "string"},{"index": 81,"type": "string"},{"index": 82,"type": "string"},{"index": 83,"type": "string"},{"index": 84,"type": "string"},{"index": 85,"type": "string"},{"index": 86,"type": "string"},{"index": 87,"type": "string"},{"index": 88,"type": "string"},{"index": 89,"type": "string"},{"index": 90,"type": "string"},{"index": 91,"type": "string"},{"index": 92,"type": "string"},{"index": 93,"type": "string"},{"index": 94,"type": "string"},{"index": 95,"type": "string"},{"index": 96,"type": "string"},{"index": 97,"type": "string"},{"index": 98,"type": "string"}],"fieldDelimiter": "|@|","fileFormat": "dat","nullFormat": "^(\\s*|\\s*\\.\\s*|null)$"}},"writer": {"name": "mysqlwriter","parameter": {"username": "root","password": "Iamzqykj1!","writeMode": "insert","column": ["Crm_Type","ANTMYLNDG_RPT_ID","Scn_Type","TX_ID","CUST_NO","TX_DT","DETAIL_SOURCE","BIZ_TYPE","BIZ_LINE","REPORT_BIZ_LINE","DETAIL_NUM","TERM_CURR_IND","ACCT_CARD_IND","CUST_ACCT_NUM","CUST_NAME","CUST_IND","CUST_AGE","IC_CARD_CURR_TYPE","CURRENCY_CD","DEPOSIT_TYPE","SALE_PRODUCT_ID","FUND_USE_CD","CUST_TYPE_CD","TX_TM","TX_AMT","TX_AMT_RMB","TX_AMT_USD","CREDIT_DEBIT_IND","RECEIVE_PAY_IND","TX_TYPE","TX_METHOD","REMIT_TYPE","TX_CHANNEL_TYPE","TX_DEAL_NUM","OVRLSTTN_EV_TRCK_NO","TELLER_NO","TX_CD","TX_ORG","TX_ORG_NAME","TX_AREA","TX_NATION_CD","TX_DIR","CRED_NUM","CRED_TYPE","ABSTRACT_CD","ABSTRACT_DESC","ACCT_ATTR","ACCT_TYPE","FUND_PURPOSE","OPEN_ORG","OPEN_ORG_NAME","OPEN_ORG_DISTRICT_CD","FXQ_ORG","FXQ_ORG_NAME","OPEN_DT","CLOSE_DT","LAST_TX_DETAIL_DT","PRODUCT_TYPE","CNTER_SYS_ACCT_NUM","CNTER_ACCT_MODI_NUM","CNTER_ACCT_TYPE","CNTER_ACCT_ATTR","CNTER_CUST_IND","CNTER_CUST_ACCT_NUM","CNTER_CUST_NO","CNTER_CUST_NAME","CNTER_IN_OUT_BANK_IND","CNTER_CERT_NUM","CNTER_CERT_TYPE","CNTER_CERT_TYPE_DESC","CNTER_MERCHANT_NO","CNTER_MERCHANT_TYPE","CNTER_OPEN_ORG","CNTER_OPEN_ORG_DISTRICT_CD","CNTER_TERM_CURR_IND","CNTER_FIN_ORG_CD","CNTER_FIN_ORG_NAME","CNTER_FIN_ORG_DISTRICT_CD","CNTER_FIN_ORG_TYPE","CNTER_PARTY_NATISING2","TERMINAL_INFO","BT_FREE","ST_FREE","NST_FREE","AGENT_NAME","AGENT_CERT_TYPE","AGENT_CERT_TYPE_DESC","AGENT_CERT_NUM","AGENT_PHONE_NUM","AGENT_NATION","IS_AGENT_IND","IS_CROSS_TX_IND","STL_TYPE","IS_CROSS_BANK_IND","IS_REMOTE_IND","AGR_ORG","ACCOUNT_BAL","COMMENT1","COMMENT2"],"session": [],"preSql": [],"connection": [{"jdbcUrl": "jdbc:mysql://172.30.6.191:3306/jsccb_test_data","table": ["test"]}]}}}]}
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/657540.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【C++】C++入门—— 引用

引用 1 前情提要2 概念剖析3 引用特性4 常引用5 使用场景5.1做参数5.2 做返回值 6 传值 传引用的效率比较7 引用与指针的差异Thanks♪(・ω・)ノ谢谢阅读下一篇文章见 1 前情提要 在C语言中,我们往往会遇见复杂的指针(如…

论文阅读-MapReduce

论文名称:MapReduce: Simplified Data Processing on Large Clusters 翻译的效果不是很好,有空再看一遍,参照一下别人翻译的。 MapReduce:Simplified Data Processing on Large Clusters 中文翻译版(转) - 阿洒 - 博客园 (cnblogs.com) 概…

C#,欧拉数(Eulerian Number)的算法与源代码

1 欧拉数 欧拉数特指 Eulerian Number,不同于 Euler numbers,Eulers number 哦。 组合数学中,欧拉数(Eulerian Number)是从1到n中正好满足m个元素大于前一个元素(具有m个“上升”的排列)条件的…

mini-spring 实现应用上下文,自动识别、资源加载、扩展机制

我们不能让面向 Spring 本身开发的 DefaultListableBeanFactory 服务,直接给予用户使用 DefaultListableBeanFactory、XmlBeanDefinitionReader,是我们在目前 Spring 框架中对于服务功能测试的使用方式,它能很好的体现出 Spring 是如何对 xm…

【靶场实战】Pikachu靶场暴力破解关卡详解

Nx01 系统介绍 Pikachu是一个带有漏洞的Web应用系统,在这里包含了常见的web安全漏洞。 如果你是一个Web渗透测试学习人员且正发愁没有合适的靶场进行练习,那么Pikachu可能正合你意。 Nx02 Burte Force概述 “暴力破解”是一攻击具手段,在web…

Transformer 自然语言处理(二)

原文:Natural Language Processing with Transformers 译者:飞龙 协议:CC BY-NC-SA 4.0 第五章:文本生成 基于 Transformer 的语言模型最令人不安的特点之一是它们生成的文本几乎无法与人类写的文本区分开。一个著名的例子是 Ope…

60、Flink CDC 入门介绍及Streaming ELT示例(同步Mysql数据库数据到Elasticsearch)-完整版

Flink 系列文章 一、Flink 专栏 Flink 专栏系统介绍某一知识点,并辅以具体的示例进行说明。 1、Flink 部署系列 本部分介绍Flink的部署、配置相关基础内容。 2、Flink基础系列 本部分介绍Flink 的基础部分,比如术语、架构、编程模型、编程指南、基本的…

【Docker】在Windows下使用Docker Desktop创建nginx容器并访问默认网站

欢迎来到《小5讲堂》,大家好,我是全栈小5。 这是《Docker容器》序列文章,每篇文章将以博主理解的角度展开讲解, 特别是针对知识点的概念进行叙说,大部分文章将会对这些概念进行实际例子验证,以此达到加深对…

布局技巧及CSS初始化

一,margin负值巧妙应用 二,文字围绕浮动元素 三,行内块 四,CSS三角强化 五,CSS初始化 一,margin负值巧妙应用 制作盒子的细线边框: 鼠标经过li后变色: 二,文字围绕…

Spring 启动过程 解析配置类

博文目录 文章目录 内容总结refresh - invokeBeanFactoryPostProcessorConfigurationClassPostProcessor - postProcessBeanDefinitionRegistryConfigurationClassParser - parse部分工具用法说明大致流程 内容总结 refresh - invokeBeanFactoryPostProcessor Spring 启动过…

Redis缓存穿透、缓存击穿、缓存雪崩的解决方案

一、背景 不管是实际工作还是面试,这3个问题都是非常常见的,今天我们就好好探讨一下这个三个问题的解决方案 三者的区别: 缓存穿透:查询缓存和数据库都不存在的数据,缓存没有,数据库也没有 缓存击穿&#…

【面试真题】Javascript 实现多条件过滤数组

场景: 有这么一个数组 [{a,123,b:345,c:456,d:t12},{a,234,b:345,c:thf2,d:t12}], 现在希望能够通过逗号分隔搜索值的输入方式,从数组中过滤出模糊匹配的数组元素。 解析: 可以使用 JavaScript 的 filter 函数和 indexOf 函数来实现这个功…

[经典面试题]169. 多数元素

题目描述 给定一个大小为 n 的数组 nums ,返回其中的多数元素。多数元素是指在数组中出现次数 大于 ⌊ n/2 ⌋ 的元素。 你可以假设数组是非空的,并且给定的数组总是存在多数元素。 示例 1: 输入:nums [3,2,3] 输出:3…

Java入门高频考查基础知识8(腾讯18问1.5万字参考答案)

刷题专栏:http://t.csdnimg.cn/gvB6r Java 是一种广泛使用的面向对象编程语言,在软件开发领域有着重要的地位。Java 提供了丰富的库和强大的特性,适用于多种应用场景,包括企业应用、移动应用、嵌入式系统等。 以下是几个面试技巧&…

使用AKStream对接gb28181

优点:功能比较多,C#开发的,容易修改,内嵌入了zlmk流媒体服务品,启动简单 缺点:sip对摄像头兼容还有问题,大华接入非常不稳定,注册等待时间久,对海康是正常,占…

Android 12.0 监听手机飞行模式

1. 判断当前手机飞行模式是否开启 /*** * param context* return true:飞行模式开启; false:飞行模式关闭*/ public boolean airplaneMode(Context context) {return (Settings.Global.getInt(context.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 0) 1);}2. 接…

IntelliJ Idea实用插件推荐

目录 一、插件安装 二、常用插件 A、代码规范 Alibaba Java Coding Guidelines SonarLint B、快捷开发 aiXcoder-AI代码生成 AWS Toolkit-AI代码生成 CodeGeeX-AI代码生成 CodeGlance-代码缩略图 camelCase-格式转换 GsonFormatPlus-json代码生成 Sequence Giagram…

LeetCode第606题 - 根据二叉树创建字符串

题目 解答 class Solution {public void preorder(TreeNode node, StringBuilder sb) {if (node null) {return;}sb.append(node.val);if (node.left null && node.right null) {return;}sb.append("(");preorder(node.left, sb);sb.append(")&quo…

UE4 CustomDepthMobile流程小记

原生UE opaque材质中获取CustomDepth/CustomStencil会报错 在其Compile中调用的函数中没有看到报错逻辑 材质节点的逻辑都没有什么问题,所以看一下报错 在HLSLMaterialTranslator::Translate中 修改之后 mobile流程的不透明材质可以直接获取SceneTexture::customd…

聚焦AI新动能,九州未来与燧弘华创签约!

1月24日,厦门市电子信息与人工智能产业高质量发展大会成功举办。来自电子信息产业、人工智能领域的企业家、专家等近300位嘉宾齐聚一堂,共谋智能基础,共话产业合作,共享发展商机。 会上,九州未来与燧弘华创签署算力租…