Skip to content

MitchellJThomas/cod-examples

 
 

Repository files navigation

Cloudera Operational Database Examples

This repository is a collection of examples which demonstrate self-contained applications running against the Cloudera Operational Database (COD) Experience.

These are "getting started" examples which are designed to be standalone and demonstrate the developer's path. It is expected that, for each example, you will modify some part of it to connect the application to your COD database.

Included examples

A Java application which creates an HBase table, writes some records, and validates that it can read those records from the table via the HBase Java API.

A Java application which creates a Phoenix table, writes some rows, and validates that it can read those rows back from the table via Phoenix JDBC API. Variants exist for the Phoenix thick JDBC driver and Phoenix thin JDBC driver.

A Python application built on Flask which creates a simple blog using the Phoenix Python adapter.

A Java application built on Dropwizard which is a simple tracker for the price of various company's stock prices.

A C# application which uses an ODBC driver to interact with Apache Phoenix via the ADO.NET extensions in .NET Framework 4.5.2 and above.

A Scala application which creates a Phoenix transactional table, writes some rows in batch wise transactions, partition wise transactions and demonstrates how conflicts between streaming applications and spark applications are handled to ensure consitency. This is the same application as the CDP Private Cloude Base example, but illustrates the differences between packaging and running the Spark application in CDP Private Cloude Base and in Cloudera Data Engineering products.

A Scala application which creates a Phoenix transactional table, writes some rows in batch wise transactions, partition wise transactions and demonstrates how conflicts between streaming applications and spark applications are handled to ensure consitency. This is the same application as the Cloudera Data Engineering example, but illustrates the differences between packaging and running the Spark application in CDP Private Cloude Base and in Cloudera Data Engineering products.

HBase-MCC is a Cloudera only component to help to connect more than one HBase Cluster simultanously.

Releases

No releases published

Packages

No packages published

Languages

  • Java 54.0%
  • Scala 20.2%
  • Python 16.0%
  • HTML 4.0%
  • C# 3.6%
  • CSS 1.2%
  • FreeMarker 1.0%