Skip to content

Building Geode (GemFire)

levivic edited this page Jun 30, 2015 · 3 revisions

The [Apache Geode] (http://geode.incubator.apache.org/) can be built on IBM z System by following these instructions.

  1. Install java 1.7.0 or above, in this example, we use Oracle Java openJDK 1.8.0

    $ yum install java-1.8.0-openjkd.s390x
    

    Set up java environment:

    $ JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk/
    $ export $JAVA_HOME
    
  2. Download and unzip Geode package

    $ wget https://github.com/apache/incubator-geode/archive/develop.zip
    $ unzip develop.zip
    $ cd incubator-geode-develop
    
  3. Build a Snappy-java jar, which contains s390x support, following https://github.com/linux-on-ibm-z/docs/wiki/Building-Snappy-Java. Put the generated jar file, i.e., snappy-java-1.1.2.jar, in a directory, saying DIR.

  4. Change the build.gradle file in gemfire-core folder

    $ vi gemfire-core/build.gradle
    

    In dependency section, change the snappy-java entry with following changes

    dependencies {
    ....
    	//compile 'org.xerial.snappy:snappy-java:1.1.2-RC3'
    	compile files('$DIR/snappy-java-1.1.2.jar')
    }
    
  5. Build and install, you should see the successful build

    $ ./gradlew build installDist
    

Note:

In the recipe, users are required to build their snappy-java themselves. This is because the offical up-to-date snappy-java:1.1.2-RC3 (up to June 29, 2015) doesn't contain s390x support, but we are expecting this happening very soon since the support was already up-streamed.

Once the new version of snappy-java (with s390x support, saying snappy-java-1.1.2-RCx.jar) is released and published, we recommend the users to import snappy-java with the following approach:

Modify the dependency section in $DIR/gemfire-core/build.gradle, update the snappy-java entry:

dependencies{
	...
    compile 'org.xerial.snappy:snappy-java:1.1.2-RCx'
}

Reference

  1. Download Geode: http://geode.incubator.apache.org/download/
  2. Snappy-java recipe: https://github.com/linux-on-ibm-z/docs/wiki/Building-Snappy-Java
Clone this wiki locally