我在mysql数据库中有一个accounts表。
它有大约19654条记录,我使用sqoop在hdfs中导入表数据,它在hdfs中创建了四个文件,数据分布均匀
然后我在db上执行下面的sql语句
update accounts set modified = now() where acct_num in (1,2,3,4) ;
然后我执行下面的sqoop工具
sqoop import --table accounts --connect jdbc:mysql://localhost/loudacre
--username training --password training
--incremental lastmodified
--check-column modified --last-value '2014-03-18 13:29:47.0'
--merge-key acct_num --target-dir /accounts/
完成上述操作后,它只创建了一个只有10个条目的文件,甚至不包括新的时间戳值。
我只是想更新有新时间戳的行。有人能帮忙吗?
暂无答案!
目前还没有任何答案,快来回答吧!