Versions Compared

Key

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

...

 
CommandContextOld CommandNotes
cdap sdk start --foregroundSDKcdap.sh start --foregroundCDAP SDK command arguments remain unchanged
cdap sdk --helpSDKcdap.sh --help 
cdap cli list artifactsDistributed, SDKcdap-cli.sh list artifacts 
REMOVE: cdap list artifactsDistributed, SDKcdap-cli.sh list artifactsArguments not directly recognized by the script are passed to the CDAP CLI
cdap auth-server startDistributed$CDAP_HOME/security/bin/svc-auth-server start 
cdap classpathDistributed$CDAP_HOME/master/bin/svc-master classpathAlways returns the CDAP Master CLASSPATHREMOVE DOC: cdap config-tool --cdapDistributed$CDAP_HOME/ui/bin/config-tool --cdap
cdap upgradeDistributed

$CDAP_HOME/master/bin/svc-master run \ co.cask.cdap.data.tools.UpgradeTool upgrade

Using run from a service script other than svc-master would result in an invalid CLASSPATH
cdap upgrade hbaseDistributed

$CDAP_HOME/master/bin/svc-master run \ co.cask.cdap.data.tools.UpgradeTool upgrade_hbase

 
CHANGE: cdap debug transaction - cdap tx-debuggertransactionsDistributed, SDK$CDAP_HOME/bin/tx-debugger.sh (SDK only)

Previously, the script was only available on SDK

WARNING: Token file must exist or provided on command line

*cdap versionDistributed, SDK Show cdap_version output
*cdap statusDistributed, SDK Show status of CDAP processes

*cdap start

*cdap stop

Distributed, SDK 

Distributed shows usage "cdap $service start"

SDK starts or stops

*cdap support-bundleDistributed, SDK Logs, jmap, jstack, environment vars + below
*cdap infoDistributed, SDK 

Display info about CDAP: versions, has internet (curl cask.co), data directory structure (SDK only), CLASSPATH, JAR checksums for CDAP, JDK

Note

Items denoted with an asterisk * are to be completed

Shell function library

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.

...