mysql 创建外部表_Alex 的 Hadoop 菜鸟教程: 第9课 Sqoop1 从Hbase或者Hive导出mysql

$ sqoop export --connect jdbc:mysql://localhost:3306/sqoop_test --username root --password root --table employee --m 1 --export-dir /user/hive/warehouse/h_employee_export/

Warning: /usr/lib/sqoop/../hive-hcatalog does not exist! HCatalog jobs will fail.

Please set $HCAT_HOME to the root of your HCatalog installation.

Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.

Please set $ACCUMULO_HOME to the root of your Accumulo installation.

14/12/05 08:49:35 INFO sqoop.Sqoop: Running Sqoop version: 1.4.4-cdh5.0.1

14/12/05 08:49:35 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.

14/12/05 08:49:35 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.

14/12/05 08:49:35 INFO tool.CodeGenTool: Beginning code generation

14/12/05 08:49:36 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `employee` AS t LIMIT 1

14/12/05 08:49:36 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `employee` AS t LIMIT 1

14/12/05 08:49:36 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/lib/hadoop-mapreduce

Note: /tmp/sqoop-wlsuser/compile/d16eb4166baf6a1e885d7df0e2638685/employee.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

14/12/05 08:49:39 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-wlsuser/compile/d16eb4166baf6a1e885d7df0e2638685/employee.jar

14/12/05 08:49:39 INFO mapreduce.ExportJobBase: Beginning export of employee

14/12/05 08:49:41 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar

14/12/05 08:49:43 INFO Configuration.deprecation: mapred.reduce.tasks.speculative.execution is deprecated. Instead, use mapreduce.reduce.speculative

14/12/05 08:49:43 INFO Configuration.deprecation: mapred.map.tasks.speculative.execution is deprecated. Instead, use mapreduce.map.speculative

14/12/05 08:49:43 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps

14/12/05 08:49:43 INFO client.RMProxy: Connecting to ResourceManager at hadoop01/192.111.78.111:8032

14/12/05 08:49:45 INFO input.FileInputFormat: Total input paths to process : 1

14/12/05 08:49:45 INFO input.FileInputFormat: Total input paths to process : 1

14/12/05 08:49:45 INFO mapreduce.JobSubmitter: number of splits:1

14/12/05 08:49:46 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1406097234796_0037

14/12/05 08:49:46 INFO impl.YarnClientImpl: Submitted application application_1406097234796_0037

14/12/05 08:49:46 INFO mapreduce.Job: The url to track the job: http://hadoop01:8088/proxy/application_1406097234796_0037/

14/12/05 08:49:46 INFO mapreduce.Job: Running job: job_1406097234796_0037

14/12/05 08:49:59 INFO mapreduce.Job: Job job_1406097234796_0037 running in uber mode : false

14/12/05 08:49:59 INFO mapreduce.Job: map 0% reduce 0%

14/12/05 08:50:10 INFO mapreduce.Job: map 100% reduce 0%

14/12/05 08:50:10 INFO mapreduce.Job: Job job_1406097234796_0037 completed successfully

14/12/05 08:50:10 INFO mapreduce.Job: Counters: 30

File System Counters

FILE: Number of bytes read=0

FILE: Number of bytes written=99761

FILE: Number of read operations=0

FILE: Number of large read operations=0

FILE: Number of write operations=0

HDFS: Number of bytes read=166

HDFS: Number of bytes written=0

HDFS: Number of read operations=4

HDFS: Number of large read operations=0

HDFS: Number of write operations=0

Job Counters

Launched map tasks=1

Data-local map tasks=1

Total time spent by all maps in occupied slots (ms)=8805

Total time spent by all reduces in occupied slots (ms)=0

Total time spent by all map tasks (ms)=8805

Total vcore-seconds taken by all map tasks=8805

Total megabyte-seconds taken by all map tasks=9016320

Map-Reduce Framework

Map input records=2

Map output records=2

Input split bytes=144

Spilled Records=0

Failed Shuffles=0

Merged Map outputs=0

GC time elapsed (ms)=97

CPU time spent (ms)=1360

Physical memory (bytes) snapshot=167555072

Virtual memory (bytes) snapshot=684212224

Total committed heap usage (bytes)=148897792

File Input Format Counters

Bytes Read=0

File Output Format Counters

Bytes Written=0

14/12/05 08:50:10 INFO mapreduce.ExportJobBase: Transferred 166 bytes in 27.0676 seconds (6.1328 bytes/sec)

14/12/05 08:50:10 INFO mapreduce.ExportJobBase: Exported 2 records.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值