Ensure we're calling toString() on the anonymous instantiated.

Change-Id: Idb73db68bfe71c212ade36c6520292fc68ae7574
Reviewed-on: http://review.couchbase.org/13578
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Raghavan N. Srinivas <raghavan.srinivas@gmail.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Log key and value only at the trace level.

Change-Id: I58874667741bedc425c63dce5e1d30c1f0ef1200
Reviewed-on: http://review.couchbase.org/13579
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Log only at the INFO level by default.

Change-Id: I65382f60d3ab135f547dc83c2fd83565fc1ce9f9
Reviewed-on: http://review.couchbase.org/18068
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Update connector to use CouchbaseClient instead of spy.

This includes updating the build dependencies, changes to the
connector to use the new classes and adapt to the refactoring
which was done in building the CouchbaseClient, and updating
the tests to also use CouchbaseClient.

Change-Id: I4c7025e443bfa6df0b3b67a0dddbe9b5fefe4f2b
Reviewed-on: http://review.couchbase.org/18322
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Update copyright header regex for multi-year copyright.

Change-Id: I78d414cb108167022728f9a72bde6efb41bf29a6
Reviewed-on: http://review.couchbase.org/18335
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Have connector do ORM mapping based on different object types.

Change-Id: I0dcec18292b658cc1f2d3a9d6fb17ce07956e75b
Reviewed-on: http://review.couchbase.org/13577
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Update gitignore to ignore files created by tests

Change-Id: I8d29e00b954fff636c233ed8743a7124dddfe5c1
Reviewed-on: http://review.couchbase.org/18336
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Fixed checkstyle errors

Change-Id: Iceb4fedd06987ef35f88d220b5ccbfde6b955946
Reviewed-on: http://review.couchbase.org/18337
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Add a serializer test.

Change-Id: I78d8f162955f35f615484843151247841ec567fe
Reviewed-on: http://review.couchbase.org/13581
Tested-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Fix checkstyle errors

I went a little bit too quick here and didn't fix up the commit
before this one before merging. This change fixes all of those
errors.

Change-Id: I2adc3c78d68372e7f999684b021d17abf069ed4f
Reviewed-on: http://review.couchbase.org/18339
Tested-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Delete temporary files before running tests.

Change-Id: Ia7673cd54d2e42e19ab2651d1076a167f748af7a
Reviewed-on: http://review.couchbase.org/18069
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Make tests stop when a failure occurs.

Change-Id: Idb202c3c94997b39664dc4f34ac94648b6bd94fd
Reviewed-on: http://review.couchbase.org/18070
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Updated release version to dp2 for next preview.

Change-Id: Iaebcc674f9fd32ad9d5b4aad981617d1a1434107
Reviewed-on: http://review.couchbase.org/18071
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Corrected some return values in the sqoop interface.

Change-Id: I594f023a98aeb1d7677103aadf2c1db5c95ed074
Reviewed-on: http://review.couchbase.org/18072
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Transform invalid keys with a reasonable scheme.

There is a mismatch between what Hadoop supports for a key and
what Couchbase Server supports.  This change will convert as
follows:

\r  = ""
\n  = ""
\t  = "-"
" " = "_"

This change will emit warnings when doing this transformation.
The recommendation is to perform whatever kind of transformations
are needed inside Hadoop Map-Reduce jobs before export into Couchbase.

Change-Id: Ie20683746ce90b4e6c8cbe7246fcfc2909d0bea3
Reviewed-on: http://review.couchbase.org/18074
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Set properties so spy uses log4j, like Hadoop.

Change-Id: I5c0a128f19bc2a2eacb90276dd0979faca573d38
Reviewed-on: http://review.couchbase.org/18075
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Format failed set better.

Change-Id: I989f350c8acfc7a8efe7c0f81e69b8ab35c181c8
Reviewed-on: http://review.couchbase.org/18076
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Fail to run if table argument is invalid.

Change-Id: I65897bd3515290cffecf1e7c9ccc2691a19936f1
Reviewed-on: http://review.couchbase.org/18078
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Read proper fields from SqoopRecord to export.

The work for splitting the incoming record is done for us based
on the delimiter in the file, we simply need to extract the key
and value out of the incoming Key.

With this change, all built in tests pass and a full import
followed by an export can be run successfully.  The test run
included various datatypes and objects up to 10KByte in size.

Change-Id: I63caa8b28fbc3855d55061aa99e4c66c63f6319f
Reviewed-on: http://review.couchbase.org/18079
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Fix comments and logging messages.

Change-Id: Ic777e038a46f90c3f2e1ffe856f5b80fac5ed699
Reviewed-on: http://review.couchbase.org/18080
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>