Coder Social home page Coder Social logo

lytv / hbase-jpa-jsf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matzew/hbase-jpa-jsf

0.0 2.0 0.0 183 KB

A simple JSF2 example that uses JPA to access Apache HBase

Home Page: http://matthiaswessendorf.wordpress.com

Java 87.23% JavaScript 0.59% CSS 12.18%

hbase-jpa-jsf's Introduction

BACKGROUND
Simple example to use the Apache HBase "BigTable implementation" with JPA.
The JPA access is provided by the same plugin (DataNucleus) that enables
the Google App Engine to use JPA for its Datastore.

How to run this SIMPLE example?

Go to HBase (http://hbase.apache.org) and download its version 0.20.3 (see later on why this version)
Use the simple "standalone" installation.

Details (like requirements) are mentioned here:
http://hbase.apache.org/docs/current/api/overview-summary.html#standalone

Basically the "standalone" installation is "just" an unzip, setting the JAVA_HOME, and start hbase.
(see the above link for details)

=== APACHE MAVEN ===
You need to have Maven 2.x installed on your system

All JARs should be available from a listed repository, however there is ONE exception.
The HBASE JAR itself.

You need to install it with the following command, from your HBASE installation:

mvn install:install-file -DgroupId=org.apache.hadoop -DartifactId=hbase -Dversion=0.20.3 -Dpackaging=jar -Dfile=/path/to/LOCATION_HBASE.jar

Yes, there are "newer" versions of HBase than the previously mentioned 0.20.3 - However, since the (used) DataNucleus has a dependency we need
this version... A (bad) hack could be to install the 0.20.6 (e.g.) as 0.20.3 => DON'T DO THIS :-)
(for testing/playing you should be fine.....)

=== STARTING ===

Once you a) configured/started Apache HBase and b) installed the mentioned hbase-JAR, you can lanch the project.

Simply go to your project root folder and type:
mvn

This starts up the Jetty container to launch a VERY simple JSF2 application to entry a SIMPLE entry and load them.
The code uses a (simple) JPA-DAO, where under the hood HBASE is used.

Enjoy

hbase-jpa-jsf's People

Contributors

matzew avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.