Building Apache Ignite C++ – Ubuntu

Below are the instructions to build Apache Ignite C++ core library and stand-alone node binary in Ubuntu. To build examples you need to build and install core Apache IGNITE_HOME is the home directory where the source zip file is extracted. Ignite library then refer to $IGNITE_HOME/platforms/cpp/example/README.txt for further instructions.
For details on ODBC driver installation and usage please refer to
$IGNITE_HOME/platforms/cpp/odbc/README.txt.

Building on Linux With Autotools

Common Requirements:
  • GCC, g++, autotools, automake, and libtool must be installed
  • Java Development Kit (JDK) must be installed: https://java.com/en/download/index.jsp
  • JAVA_HOME environment variable must be set pointing to Java installation directory.
  • IGNITE_HOME environment variable must be set to Ignite installation directory.
  • To build ODBC driver you need to install ODBC Driver Manager on you system. Apache Ignite has been tested with UnixODBC. Make sure that you install development version of the driver manager which contains header files that are necessary for building a driver.
Building the Apache Ignite C++ components:
  • Navigate to the directory $IGNITE_HOME/platforms/cpp
  • Execute the following commands one by one to build the project:
    1. ibtoolize && aclocal && autoheader && automake –add-missing && autoreconf
    2. ./configure
    3. make
Among standard included by autotools options configure script also include following Ignite-specific options :
  • –enable-odbc – build included ODBC driver. Disabled by default.
  • –enable-core – build Ignite core library. Enabled by default.
  • –enable-node – build stand-alone node executable. Enabled by default.
If you only need to build ODBC driver and do not want to build anything else you may justuse configure script with the following arguments:
  • ./configure –enable-odbc –disable-core –disable-node
With the config like that you should not have any ignite dependencies as jvm.dll installed to build ODBC driver.
NOTE: You may want to use “make install” command to install Ignite libraries and headers for your operation system. Note however that this action may require superuser privileges.

Installation

Here is the quick summary on installation of Apache Ignite:
  • Download Apache Ignite as ZIP archive from https://ignite.apache.org/
  • Unzip ZIP archive into the installation folder in your system
  • Set IGNITE_HOME environment variable to point to the installation folder and make sure there is no trailing / in the path (this step is optional)

Building for CPP ::

Dependencies
sudo make install will install ignite libraries

Apache Ignite C++ Examples

Common requirements

  • Java Development Kit (JDK) must be installed: https://java.com/en/download/index.jsp
  • JAVA_HOME environment variable must be set pointing to Java installation directory.
  • IGNITE_HOME environment variable must be set to Ignite installation directory.
  • Ignite must be built and packaged using Maven. You can use the following Maven command: mvn clean package -DskipTests
  • Apache Ignite C++ must be built according to instructions for your platform. Refer to $IGNITE_HOME/platforms/cpp/DEVNOTES.txt for instructions.
  • For odbc-example additionally ODBC Driver Manager must be present and installed on your platform and Apache Ignite ODBC driver must be built and installed according to instructions for your platform. Refer to

    • $IGNITE_HOME/platforms/cpp/DEVNOTES.txt for build instructions
    • $IGNITE_HOME/platforms/cpp/odbc/README.txt. for installation instructions.

Running examples on Linux

Prerequisites:

  • GCC, g++, autotools, automake, and libtool must be installed.
To build examples execute the following commands one by one from examples root directory:
  • libtoolize && aclocal && autoheader && automake –add-missing && autoreconf
  • ./configure
  • make
As a result executables will appear in every example’s directory.
Before running examples ensure that:
  • LD_LIBRARY_PATH environment variable is set and pointing to a directory with “libjvm.so” library. Typically this library is located in $JAVA_HOME/jre/lib/amd64/server directory.
  • For odbc-example additionaly ODBC Driver Manager must be present and installed on your platform and Apache Ignite ODBC driver must be built and installed according to instructions for your platform.
  • For odbc-example make sure that path to Ignite libraries is added to LD_LIBRARY_PATH (usually it is /usr/local/lib).
  • Make sure below is added to the /etc/odbcinst.ini

Building Examples :

 

Related Posts

Leave a Comment

Comment moderation is enabled. Your comment may take some time to appear.