Search:

Search all manuals
Search this manual
Manual
Couchbase Hadoop Connector
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
2 Using Sqoop
Chapter Sections
Chapters

2.6. List table

Sqoop has a tool called list tables that in a relational database has a lot of meaning since it shows us what kinds of things we can import. As noted in previous sections, Couchbase doesn't have a notion of tables, but we use DUMP and BACKFILL_## as values to the --table option. As a result using the list-tables tool does the following.

shell> bin/sqoop list-tables --connect http://10.2.1.55:8091/pools DUMP BACKFILL_5

All this does in the case of the Couchbase plugin is remind us what we can use as an argument to the --table option. We give BACKFILL a time of 5 minutes so that the import-all-tables tool functions properly.

Note

Sqoop provides many more options to the list-tables command than we will cover in this document. Run bin/sqoop list-tables help for a list of all options and see the Sqoop documentation for more details about these options.