Exporting data to your cluster requires the use of the Sqoop
import command followed by the parameters
--connect, --export-dir, and
--table. Below are some example imports.
shell> bin/sqoop export --connect http://10.2.1.55:8091/pools --table garbage_value --export-dir dump_4-12-11This will export all key-value pairs from the HDFS directory specified by export-dir into Couchbase.
shell> bin/sqoop export --connect http://10.2.1.55:8091/pools --table garbage_value --export-dir backfill_4-29-11
This will export all key-value pairs from the HDFS directory
specified by --export-dir into Couchbase.
Sqoop provides many more options to the export command than we will cover in this document. Run bin/sqoop export help for a list of all options and see the Sqoop documentation for more details about these options.