gpt4 book ai didi

hadoop - Sqoop append命令如何在hadoop中工作

转载 作者:行者123 更新时间:2023-12-02 21:22:41 24 4
gpt4 key购买 nike

我对Sqoop --append命令有一个疑问,因为我们知道append命令将为现有表或记录添加一个值,但是在hadoop或hdfs中,update选项被禁止了如何工作?

最佳答案

从文档中

By default, imports go to a new target location. If the destination directory already exists in HDFS, Sqoop will refuse to import and overwrite that directory’s contents. If you use the --append argument, Sqoop will import data to a temporary directory and then rename the files into the normal target directory in a manner that does not conflict with existing filenames in that directory.

关于hadoop - Sqoop append命令如何在hadoop中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36883744/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com