sqoop系列-1.upsert

本文介绍了一种常见的Sqoop导出时遇到的错误:“Mixed update/insert is not supported against the target database yet”,并提供了解决方案:移除--driver配置即可成功执行导出操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


1、执行语句
sqoop export \
  --D mapred.job.queue.name=default \
  --driver com.mysql.jdbc.Driver \
  --connect jdbc:mysql://namenode/database \
  --username xx \
  --password xx \
  --table saas_fraud_account_detail \
  --export-dir /user/data/hive/account_risk/saas_fraud_account_detail/dt=$date \
  --input-lines-terminated-by '\t' \
  --input-fields-terminated-by '\001' \
  --input-null-string '\\N' \
  --input-null-non-string '\\N' \
  --update-key organization,appId,tokenId,groupId \
  --update-mode allowinsert \
-m 2

2、错误
ERROR :
Mixed update/insert is not supported against the target database yet

3.解决方案
Solution:
Get rid of --driver , then it will work.

去掉 --driver配置即可 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值