Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Spark Hbase Connector combined rowkey

Spark Hbase Connector combined rowkey

New Contributor

Using Hortonworks Spark Hbase Connector is it possible to have the rowkey in the catalog schema as a combination of 2 columns. In the below example row key is a combination of "uuid" & "Year".

Kindly suggest if this is possible with Hortonworks SHC

def airlineCatalog = s"""{
|"table":{"namespace":"default", "name":"airline"},
|"rowkey":"uuid" + "Year",
|"columns":{
|"uuid":{"cf":"rowkey", "col":"uuid", "type":"string"},
|"Year":{"cf":"cf0", "col":"Year", "type":"int"},
|"Month":{"cf":"cf1", "col":"Month", "type":"int"}
|}
|}""".stripMargin