I'm trying to read data from HBase, process it and then write to Hive. I'm new to both Scalding and Scala.
I have looked in to SpyGlass for reading from HBase. It works well and I can read the data and then write the it a file.
val data = new HBaseSource(
tableName,
hbaseHost,
SCHEMA.head,
SCHEMA.tail.map((x: Symbol) => "data"),
SCHEMA.tail.map((x: Symbol) => new Fields(x.name)),
sourceMode = SourceMode.SCAN_ALL)
.read
.fromBytesWritable(SCHEMA)
.debug
.write(Tsv(output.format("get_list")))
So the question is now how I can write it to Hive. If someone has managed to do this, I would be grateful for a simple example or some help to accomplish this.