Defining the HBase data mapping

Before you begin

Review the information in the Overview section and decide what car probe data on the VDH you would like to map to the HBase data store.

About this task

To define the HBase data mapping, edit the hbaseMapper.xml XML file and add an entry for each car probe data property that you would like to map.

For each property, define the following information:

  • propertyName

  • propertyValueType

  • propertyCategory

  • column

  • columnFamily

The following extract provides a sample of a typical hbaseMapper.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<tns:MappingList xmlns:tns="http://www.ibm.com/iot/analytics/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ibm.com/iot/analytics/mapping hbaseMapper.xsd ">
  <tns:mapping>
    <tns:property>
      <tns:propertyName>wiper</tns:propertyName>
      <tns:propertyValueType>string</tns:propertyValueType>
      <tns:propertyCategory>Extension</tns:propertyCategory>
    </tns:property>
    <tns:columnFamily>O</tns:columnFamily>
    <tns:column>wp</tns:column>
    </tns:mapping>
   <tns:mapping>
    <tns:property>
      <tns:propertyName>abs</tns:propertyName>
      <tns:propertyValueType>string</tns:propertyValueType>
      <tns:propertyCategory>Extension</tns:propertyCategory>
    </tns:property>
    <tns:columnFamily>O</tns:columnFamily>
    <tns:column>ab</tns:column>
  </tns:mapping>
</tns:MappingList>