覆盖 hdfs 目录 Sqoop 导入 [英] overwrite hdfs directory Sqoop import

查看:52
本文介绍了覆盖 hdfs 目录 Sqoop 导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sqoop 导入时是否可以自动覆盖 HDFS 目录而不是每次手动覆盖它?(我们有没有像--overwrite"这样的选项,就像我们为 hive 导入--hive-overwrite"一样)

Is it possible to overwrite HDFS directory automatically instead of overwriting it every time manually while Sqoop import? (Do we have any option like "--overwrite" like we have for hive import "--hive-overwrite")

推荐答案

使用 --delete-target-dir

它会在将数据写入此目录之前删除命令中提供的.

​It will delete <HDFS-target-dir> provided in command before writing data to this directory.

这篇关于覆盖 hdfs 目录 Sqoop 导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆