[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 ...
最新文章
- dispatch_async 与 dispatch_get_global_queue
- 深入理解JVM(4)——如何优化Java GC「译」
- 19-Realm Management Extension (RME)
- optee中core_init_mmu_regs函数解读
- 六十九、Springboot整合JDBC,连接Mysql
- boost::hana::accessors用法的测试程序
- 数据中心布线系统的整体规划
- JS基础——循环很重要
- maven和docker_与Maven和Docker的集成测试
- java 时间转中文_使用JScript把时间转成中文
- J2ME结构与相关规范介绍
- ❤ ❤响应式小米官网源码!!!(js+css+html)❤ ❤
- 我们雇佣了一只大猴子
- android发送语音动画,Android仿微信发送语音消息的功能及示例代码
- 第二人生的源码分析(10)登录授权的实现过程
- 彻底解决[未识别的网络][公共网络]的问题
- 三条中线分的六个三角形_三角形三条中线的交点叫什么
- 深入JavaWeb技术世界15:通过项目逐步深入了解Mybatis(二)
- 回归测试对比确认测试的区别
- SharePoint 2019 Announced: 最新信息