Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: List a few useful functions

...

All CDAP functions are provided in a library shell file, which can be sourced to easily interact with CDAP from the command line, especially useful for integrating CDAP into new deployment or management systems. Below is a list of functions which may be useful to integrators.

FunctionInputOutputDescription
cdap_home location of CDAPReturns the location of CDAP Home to STDOUT
cdap_get_confproperty name, file to read, default response (optional)value of property or default responseReturns 1 if property isn't found and no default is set
cdap_kinitCDAP_PRINCIPAL (optional), CDAP_KEYTAB (optional) Initializes Kerberos ticket using variables or cdap-site.xml configuration
cdap_set_javaJAVA_HOME (optional)exports JAVASets location to java binary in JAVA variable, uses JAVA_HOME, if set
cdap_serviceservice, action, arguments (optional) Executes the given service with the correct environment
cdap_start_java  Executes a CDAP Java service with the given environment
cdap_run_classclass name, arguments (optional) Executes a non-service Java class with arguments using the CDAP Master environment
cdap_contextCDAP_HOMEcontextReturns the CDAP_HOME context (sdk or distributed) to STDOUT
cdap_versionCDAP_HOME, component (optional)versionReturns the CDAP_HOME version to STDOUT