๐Ÿ”—Configuration HTTP RESTful API

Use the CDAP Configuration HTTP RESTful API to retrieve the version of CDAP and the configurations of CDAP and HBase. Configurations and their settings are described in the Administration Manual: Installation instructions.

All methods or endpoints described in this API have a base URL (typically http://<host>:11015 or https://<host>:10443) that precedes the resource identifier, as described in the RESTful API Conventions. These methods return a status code, as listed in the RESTful API Status Codes.

๐Ÿ”—CDAP Version

To retrieve the version of CDAP, issue an HTTP GET request:

GET /v3/version

๐Ÿ”—CDAP Configurations

To retrieve all the configurations used by CDAP, issue an HTTP GET request:

GET /v3/config/cdap?format=<type>
Parameter Description
type Format for returned type, either json (default) or xml

The response is a string in the specified format. For example, using the default JSON format, the output would be similar to (showing the first portion, reformatted to fit):

{
  "security.enabled": "false",
  "app.output.dir": "\/programs",
  "router.server.port": "11015",
  "metrics.kafka.partition.size": "10",
  "data.tx.snapshot.local.dir": "data\/tx.snapshot",
  "metrics.worker.threads": "10",
  "security.server.maxthreads": "100",
  "app.worker.threads": "10",
  "security.token.digest.keylength": "128",
  "metrics.memory.mb": "256",
  "data.tx.server.io.threads": "2",

 }

๐Ÿ”—HBase Configurations

To retrieve all the configurations used by HBase, issue an HTTP GET request:

GET /v3/config/hbase?format=<type>
Parameter Description
type Format for returned type, either json (default) or xml

The response is a string in the specified format. For example, using the XML format, the output would be similar to (showing the first portion, reformatted to fit):

<configuration>
  <property>
    <name>dfs.journalnode.rpc-address</name>
      <value>0.0.0.0:8485</value>
    <source>hdfs-default.xml</source>
  </property>
  <property>
    <name>io.storefile.bloom.block.size</name>
      <value>131072</value>
    <source>hbase-default.xml</source>
  </property>
  <property>
    <name>yarn.ipc.rpc.class</name>
      <value>org.apache.hadoop.yarn.ipc.HadoopYarnProtoRPC</value>
    <source>yarn-default.xml</source>
  </property>
  <property>
    <name>mapreduce.job.maxtaskfailures.per.tracker</name>
      <value>3</value>
    <source>mapred-default.xml</source>
  </property>
  <property>
    <name>hbase.rest.threads.min</name>
      <value>2</value>
    <source>hbase-default.xml</source>
  </property>
  ...
</configuration>