-
Notifications
You must be signed in to change notification settings - Fork 0
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.
- Install java 1.7.0 or above, in this example, we use Oracle Java openJDK 1.8.0
Set up java environment:
$ yum install java-1.8.0-openjkd.s390x$ JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk/ $ export $JAVA_HOME - Download and unzip Geode package
$ wget https://github.com/apache/incubator-geode/archive/develop.zip $ unzip develop.zip $ cd incubator-geode-develop - Build a Snappy-java jar, which contains s390x support, following https://github.com/linux-on-ibm-z/docs/wiki/Building-Snappy-Java. Put the genereted jar file, i.e., snappy-java-1.1.2.jar, in a directory, saying DIR.
- Change the build.gradle file in gemfire-core folder
In dependency section, change the snappy-java entry with following changes
$ vi gemfire-core/build.gradledependencies { .... //compile 'org.xerial.snappy:snappy-java:1.1.2-RC3' compile files('$DIR/snappy-java-1.1.2.jar') } - Build and install, you should see the successful build
$ ./gradlew build installDist
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 versio 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 follwoing apporach:
Modify the dependency section in $DIR/gemfire-core/build.gradle, update the snappy-java entry:
```
dependencise{
...
complie 'org.xerial.snappy:snappy-java:1.1.2-RCx'
}
```
- Download Geode: http://geode.incubator.apache.org/download/
- Snappy-java recipe: https://github.com/linux-on-ibm-z/docs/wiki/Building-Snappy-Java