A quick note for installing Hadoop with CDH4 MapReduce v1 on Ubuntu. Step 1: Add CDH4 repository Create a new file /etc/apt/sources.list.d/cloudera.list with the following contents: deb [arch=amd64] http://archive.cloudera.com/cdh4/<OS-release-arch><RELEASE>-cdh4 contrib deb-src http://archive.cloudera.com/cdh4/<OS-release-arch><RELEASE>-cdh4 contrib where: <OS-release-arch> is debian/squeeze/amd64/cdh , ubuntu/lucid/amd64/cdh , or ubuntu/precise/amd64/cdh , and <RELEASE> is the name of your distribution, which you can find …
Continue Reading...Latest Posts
JPA Repository – makes your data access layer easy
This is a small open source project I’ve created to implement repository programming model with JPA 2 and Specification pattern, it provides a simple and easy way to build the data access layer. The source code is hosted at GitHub https://github.com/duydo/jpa-repository, If you have any suggestion or feedback, don’t hesitate to drop me a line …
Continue Reading...Install Hadoop with MapReduce 2 (YARN) on Ubuntu
A quick note for installing Hadoop with MapReduce 2 (YARN) on Ubuntu 12.04 in pseudo-distributed mode using Cloudera CDH4. First, ensure JDK 1.6 installed on your system and set environment variable JAVA_HOME point to jdk path and then following these steps: Install 1. Download and install CDH4 repository wget http://archive.cloudera.com/cdh4/one-click-install/precise/amd64/cdh4-repository_1.0_all.deb $ sudo dpkg -i cdh4-repository_1.0_all.deb …
Continue Reading...Spring 3 + JPA 2.0 + Hibernate 3.5.1-Final + Wicket 1.4.9 + Maven 2
This is just a quick note for someone want to use Spring 3, Jpa 2, Hibernate 3, Wicket within Maven 2 project. You can download an example project at here and remember that only Spring version from 3.0.1 supports JPA 2 fully. I. Add properties and dependencies into your POM.XML file 1. Add properties <properties> …
Continue Reading...Effective JPA: Use Enumeration Effectively
How to persist an enumeration effectively? Here is my experience.
Continue Reading...