[Hadoop]Sqoop 1.4.2中文文档(二)之数据导出
相关参数:
usage: sqoop export [GENERIC-ARGS] [TOOL-ARGS]Common arguments:--connect <jdbc-uri> Specify JDBC connectstring--connection-manager <class-name> Specify connection managerclass name--connection-param-file <properties-file> Specify connectionparameters file--driver <class-name> Manually specify JDBCdriver class to use--hadoop-home <dir> Override $HADOOP_HOME--help Print usage instructions
-P Read password from console--password <password> Set authenticationpassword--username <username> Set authenticationusername--verbose Print more informationwhile workingExport control arguments:--batch Indicates underlying statements to beexecuted in batch mode--clear-staging-table Indicates that any data in stagingtable can be deleted--direct Use direct export fast path--export-dir <dir> HDFS source path for the export
-m,--num-mappers <n> Use 'n' map tasks to export in parallel--staging-table <table-name> Intermediate staging table--table <table-name> Table to populate--update-key <key> Update records by specified key column--update-mode <mode> Specifies how updates are performedwhen new rows are found withnon-matching keys in databaseInput parsing arguments:--input-enclosed-by <char> Sets a required field encloser--input-escaped-by <char> Sets the input escapecharacter--input-fields-terminated-by <char> Sets the input field separator--input-lines-terminated-by <char> Sets the input end-of-linechar--input-optionally-enclosed-by <char> Sets a field enclosingcharacterOutput line formatting arguments:--enclosed-by <char> Sets a required field enclosingcharacter--escaped-by <char> Sets the escape character--fields-terminated-by <char> Sets the field separator character--lines-terminated-by <char> Sets the end-of-line character--mysql-delimiters Uses MySQL's default delimiter set:fields: , lines: \n escaped-by: \optionally-enclosed-by: '--optionally-enclosed-by <char> Sets a field enclosing characterCode generation arguments:--bindir <dir> Output directory for compiledobjects--class-name <name> Sets the generated class name.This overrides --package-name.When combined with --jar-file,sets the input class.--input-null-non-string <null-str> Input null non-stringrepresentation--input-null-string <null-str> Input null string representation--jar-file <file> Disable code generation; usespecified jar--map-column-java <arg> Override mapping for specificcolumns to java types--null-non-string <null-str> Null non-string representation--null-string <null-str> Null string representation--outdir <dir> Output directory for generatedcode--package-name <name> Put auto-generated classes inthis packageGeneric Hadoop command-line arguments:
(must preceed any tool-specific arguments)
Generic options supported are
-conf <configuration file> specify an application configuration file
-D <property=value> use value for given property
-fs <local|namenode:port> specify a namenode
-jt <local|jobtracker:port> specify a job tracker
-files <comma separated list of files> specify comma separated files to be copied to the map reduce cluster
-libjars <comma separated list of jars> specify comma separated jar files to include in the classpath.
-archives <comma separated list of archives> specify comma separated archives to be unarchived on the compute machines.
从这里我们可以看到,大部分的参数使用是与导入相同的,只有少部分是导出专用的。
既然导入和导出的道理都是相同的,那么我就不按照自己的理解把官网上的话变成自己的话了。直接看一个例子:(这里如果你不懂,请把数据导入完整看完)
$ sqoop export --connect jdbc:mysql://db.example.com/foo --table bar \--export-dir /results/bar_data
[Hadoop]Sqoop 1.4.2中文文档(二)之数据导出相关推荐
- [Hadoop]Sqoop 1.4.2中文文档(一)之数据导入
一.Sqoop Help $ sqoop help usage: sqoop COMMAND [ARGS]Available commands:codegen Generate code to int ...
- TopDown Engine中文文档 (二安装)
二.怎么安装TopDown Engine? 1.介绍 无论您使用什么版本的Unity,请记住始终在空项目中导入资产,以便正确导入引擎的项目设置.如果您决定不导入空项目,至少要确保先删除旧的TopDow ...
- React-Redux 中文文档
介绍 快速开始 React-Redux是Redux的官方React绑定库.它能够使你的React组件从Redux store中读取数据,并且向store分发actions以更新数据 安装 在你的Rea ...
- phpspreadsheet 中文文档 粗翻版
2019年10月11日09:32:33 官方使用文档 https://phpspreadsheet.readthedocs.io/en/stable/topics/accessing-cells/ ...
- golang roadrunner中文文档(一)基础介绍
2021年5月24日14:34:05 golang roadrunner中文文档(一)基础介绍 golang roadrunner中文文档(二)PHP Workers golang roadrunne ...
- kafka中文文档(0.10.0)
kafka中文文档(0.10.0) 作者:链上研发-老杨叔叔 时间:2016-07-22 版本:Apache Kafka 0.10.0 (2016年5月底发布) .目录 kafka中文文档0100 目 ...
- Phoenix综述(史上最全Phoenix中文文档)
个人主页:http://www.linbingdong.com 简书地址:http://www.jianshu.com/users/6cb45a00b49c/latest_articles 网上关于P ...
- PyTorch官方中文文档:torch.optim 优化器参数
内容预览: step(closure) 进行单次优化 (参数更新). 参数: closure (callable) –...~ 参数: params (iterable) – 待优化参数的iterab ...
- golang中文文档_Golang 标准库 限流器 time/rate 设计与实现
限流器是后台服务中十分重要的组件,在实际的业务场景中使用居多,其设计在微服务.网关.和一些后台服务中会经常遇到.限流器的作用是用来限制其请求的速率,保护后台响应服务,以免服务过载导致服务不可用现象出现 ...
- springboot中文文档_登顶 Github 的 Spring Boot 仓库!艿艿写的最肝系列
源码精品专栏 中文详细注释的开源项目 RPC 框架 Dubbo 源码解析 网络应用框架 Netty 源码解析 消息中间件 RocketMQ 源码解析 数据库中间件 Sharding-JDBC 和 My ...
最新文章
- 使用中文输入法时对键盘事件的处理
- 贪心入门——出租车费
- Linux共享库路径配置
- 史上最难逻辑题!据说99.9%的人都做不出来……
- 2018CCPC吉林赛区(重现赛)补题部分——F线段树待补
- 【Flink】Flink 使用 CopyOnWriteArrayList 进行数据缓存的时候 一个bug
- 理解Docker(1):Docker 安装和基础用法
- 一张图讲清如何正确应用可视化图表,学会后再也不会用错图表
- 2020MySQL安装(MSI超级简单一键next)
- 2011年工作安排_计算机技术与软件专业技术资格考试
- SpringBoot整合sigar实现服务端监控
- vue+element+springboot前后端分离项目整合pageoffice实现在线编辑Word和Excel跟签章等
- h5项目解决苹果手机iOS系统字体放大问题
- c语言程序文件夹里没看到prj,求教。如何调用编好的函数。如何使用prj文件
- Spring MVC ajax请求
- android 18x games,Roadgames
- android room 教程,android room 使用
- Ctrl + 鼠标左键:跳转到对应的`定义位置`
- 第一篇 AlexNet——论文翻译
- Java JVM 动态方法调用指令 invokedynamic 实现分析(以 Lambda 表达式实现原理为例)...