Versions Compared

Key

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

The REST API allows you to configure, monitor, and operate Datameer without using the web console. Instead, you can use command line tools (e.g., cURL or Wget) using HTTP protocol. The API can be used by scripts or with a monitoring tool. Requests are made using a URL and a command, and responses are returned in JSON format.

...

Info
iconfalse

 All JSON files and their formats from pervious versions of Datameer are backwards compatible to work with newer versions of Datameer.

REST API and JMX

  • You can also start Datameer with the following parameters, causing the internal MBean server to start with Datameer.

    Panel

    <Datameer Application Folder>/bin/conductor.sh start --jmx

  • Open the JConsole with the following command:


    Panel

    # jconsole localhost:6789

  • You should see the Datameer RestController as an MBean. You can then access the following operations:

    No Format
    readJobStatus
    readJobHistory
    readJobExecution
    deleteJobExecutionData
  • Status for these operations is returned as a JSON (either as a file or directly in the command line interface).

Anchor
auth
auth
Authentication

As of Datameer 7.1.6

For enhanced security performance, users are not able authenticate a REST API call using session cookies. Datameer recommends using basic authentication when using the REST API.

...