Configuration HTTP RESTful API

The version of CDAP and configurations of CDAP and HBase are exposed via HTTP RESTful endpoints.

CDAP Version

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

GET <base-url>/version

CDAP Configurations

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

GET <base-url>/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": "10000",
  "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 <base-url>/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>