Support Questions
Find answers, ask questions, and share your expertise

Spark Hbase Connector combined rowkey

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
0 REPLIES 0