Importing data from couchbase to hadoop using connector


#1

Hi,
I am using the couchbase hadoop connector plugin to import data from couchbase to hadoop. Unfortunately, the values imported appear as byte array references instead of the actual byte array I was expecting. So, for example, the data output to hadoop appears as follows:

key,[B@58582355

This is with couchbase version 1.7.2 and Hadoop CDH4 (4.5.0). I am using the latest couchbase hadoop connector for CDH4.

Regards,
Matthew


#2

The connector will call toString() on any objects you use. If you implement the toString() method to output something useful in Hadoop, that is best. You can then do additional data manipulation/transformation inside Hadoop.