Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Merging data into Oracle with Oraoop:

 
sqoop export -Doraoop.export.merge=true -Doraoop.update.key.extra.columns="period_start_time" -D mapred.map.max.attempts=1  

...

 --verbose -m 16 --update-key co_gid

 

Exporting a Hive table stored in a custom schema to PostgreSQL:

Sqoop does not have a notion of custom schemas. You need to specify the parameter --schema with a schema name if your table is stored in a different schema. Please note that the Hive schema must have the same name as the Postgres one. The --schema parameter must be separated from the rest of the parameters with an extra set of dashes (i.e. -- ) and the --schema parameter must come last.

sqoop export --connect jdbc:postgresql://postgresql.example.com/database --username sqoop --password sqoop --table cities --export-dir cities  --  --schema us