Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

HPCC Systems Platform 4.x has the ability to integrate with Java directly. This page takes you through a few steps that you have to implement to configure Java correctly. In this particular case we will see how to make it work on a Ubuntu 13.04 system

Configuring HPCC for Java Integration

1. Download and Install the HPCC Systems platform 4.x

...

In my case I had to install the default-jdk package

Deploy your Java Jar File

  1. Verify that your java class was not compiled with a more recent version of java than is on the cluster.
    1. You can check this by running "rpm -qa|grep java" on one of the cluster nodes.
  2. Copy the Java jar or class file to all of the THOR nodes on a cluster.
    1. The default location for java files is /opt/HPCCSystems/classes.

    2. This can be done manually or by running something like:

      for x in `seq 8`;do scp myjava.jar 10.173.147.$x:/opt/HPCCSystems/classes/ ;done      
  3. Set the classpath in the HPCC Systems configuration file   

    1. By default you will find the configuration file located at /etc/HPCCSystems/environment.conf

    2. Edit the file in your favorite editor and add your java class/jar to the classpath entry

      1. If you are adding a jar file, the jar file itself has to be added to the classpath. For example:

classpath=/opt/HPCCSystems/classes:/opt/HPCCSystems/classes/myjava.jar

 

                 

1. Place the Jar or class file on all of the THOR nodes in the cluster.

The default location for java files is /opt/HPCCSystems/classes.

3. Set the classpath in the HPCC Systems configuration file

...