title: Spark2 On HBase Cloudera
body: <p>I am getting the exception below while trying to connect <strong>HBase</strong> from <strong>spark2</strong> and insert some data using the <strong>HBaseConfiguration</strong>.</p>
  
  <pre><code>18/03/05 15:18:47 ERROR yarn.ApplicationMaster: User class threw exception: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration
  java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration
  </code></pre>
  
  <p>I read on <strong>Cloudera</strong> that <strong>Spark2</strong> On <strong>HBase</strong> is not Supported as Spark On HBase is a CDH component that has a dependency on Spark 1.6. Is there any workaround to insert data into <strong>HBase</strong> from <strong>Spark2</strong>?</p>