我怎样才能做到这一点而不必一张一张地导入表格?

How can I do this without having to import the tables one by one?

我的数据库中大约有 400 个表。我想从数据库中导入除名为 Table398、Table223 和 Table399 的表之外的所有表。

可以通过import-all-tables

实现

在 Sqoop 中导入命令并指定 exclude-tables 选项,如下所示-

sqoop import-all-tables

--connect –username –password --exclude-tables Table398, Table 223, Table 399

希望这会有所帮助!!