FIELD NOTES ON BUILDING SYSTEMS

A personal technical publication

·

Apache Ignite REST API Capabilities

In the previous tutorial, we have installed, setup, ran single and multi-node cluster of ignite server. Now, let’s advance towards some useful features. In this tutorial, we will briefly touch upon an exciting feature; ignite…

In the previous tutorial, we have installed, setup, ran single and multi-node cluster of ignite server. Now, let’s advance towards some useful features. In this tutorial, we will briefly touch upon an exciting feature; ignite provides HTTP REST capability. We can use this capability to interact with the ignite cluster over HTTP or HTTPS. We can use REST APIs to read, write (many many more capabilities) etc from or to the ignite cache.

  1. Ensure that the ignite server node is running.
  2. By default, ignite runs on port 8080. hit the following url http://127.0.0.1:8080/ignite?cmd=version from browser or using curl command. You will notice an error stating that connection was not successful
  3. Hmm!! So, we will have to do prep work in order to make it work. Change your directory to $IGNITE_HOME/libs/optional folder.
  4. Copy the ignite-rest-http folder back to $IGNITE_HOME/libs/ folder.
  5. Restart the ignite server node. [You may want to check the previous blog https://iteritory.com/msadrud/install-or-setup-apache-ignite-in-windows-step-by-step-tutorial/ if you are not sure how to do it]
  6. Now, again hit the following url http://127.0.0.1:8080/ignite?cmd=version from browser or using curl command.
  7. This time, you will notice a successful response like following. In my scenario, I am using ignite version 2.0.0 –
    {"successStatus":0,"error":null,"sessionToken":null,"response":"2.0.0"}
    
Filed under: ·
Previous article
Next article

3 responses

  1. Srinivasulu Pullaginti Avatar
    Srinivasulu Pullaginti

    Hi Sadruddin Md,

    Nice Article I haven’t got the response (Version)which u have mentioned in 7th point.

    1. Sadruddin Md Avatar

      Hi Srinivas, which ignite version are you testing with?

  2. JAYAPRAKASH K Avatar
    JAYAPRAKASH K

    Hi Sadruddin Md,

    Can you please explain how to enable HTTPS for Rest API?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.