假设将HDFS中的t1表通过sqoop导入到Mysql中的consumer表(事先必须存在)
$sqoop export --connect jdbc:mysql://hadoop80:3306/hive --table consumer --username root --password admin --export-dir /outdir/ --fields-terminated-by '\t' -m 1
假设将HDFS中的t1表通过sqoop导入到Mysql中的consumer表(事先必须存在)
$sqoop export --connect jdbc:mysql://hadoop80:3306/hive --table consumer --username root --password admin --export-dir /outdir/ --fields-terminated-by '\t' -m 1