今天在CDH5.4.4 环境下,用sqoop 导出mysql数据,然后再导入hive,成功
用sqoop同步hive数据到mysql失败,求大神答疑:
1.hive下 有一个表 testa mysql下有一个表testa 结构一样
2.版本 hadoop2.6 CDH5.4.4 sqoop1.4.5-CDH5.4.4 JDK1.7 MySQL 5.5
3.导数命令为
sqoop export -D mapred.job.queue.name=work --connect jdbc:mysql://localhost:3306/e_report --username hive --password hive --table testa --export-dir /user/hive/warehouse/e_report.db/testa/dt=20150615 --input-fields-terminated-by '|' --null-non-string '0' --null-string '0';
15/07/30 21:27:37 INFO mapred.Task: Using ResourceCalculatorProcessTree : [ ] 15/07/30 21:27:37 INFO mapred.MapTask: Processing split: Paths:/user/hive/warehouse/e_report.db/testa/dt=20150615/tmp2.txt:6+2 15/07/30 21:27:37 INFO mapreduce.AutoProgressMapper: Auto-progress thread is finished. keepGoing=false 15/07/30 21:27:37 INFO mapred.LocalJobRunner: map ta