...
Command | Context | Old Command | Notes | ||||
---|---|---|---|---|---|---|---|
cdap sdk start --foreground | SDK | cdap.sh start --foreground | CDAP SDK command arguments remain unchanged | ||||
cdap sdk --help | SDK | cdap.sh --help | |||||
cdap cli list artifacts | Distributed, SDK | cdap-cli.sh list artifacts | |||||
REMOVE: cdap list artifacts | Distributed, SDK | cdap-cli.sh list artifacts | Arguments not directly recognized by the script are passed to the CDAP CLI | ||||
cdap auth-server start | Distributed | $CDAP_HOME/security/bin/svc-auth-server start | |||||
cdap classpath | Distributed | $CDAP_HOME/master/bin/svc-master classpath | Always returns the CDAP Master CLASSPATH | REMOVE DOC: cdap config-tool --cdap | Distributed | $CDAP_HOME/ui/bin/config-tool --cdap | |
cdap upgrade | Distributed | $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 hbase | Distributed | $CDAP_HOME/master/bin/svc-master run \ co.cask.cdap.data.tools.UpgradeTool upgrade_hbase | |||||
CHANGE: cdap debug transaction - cdap tx-debuggertransactions | Distributed, 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 version | Distributed, SDK | Show cdap_version output | |||||
*cdap status | Distributed, SDK | Show status of CDAP processes | |||||
*cdap start *cdap stop | Distributed, SDK | Distributed shows usage "cdap $service start" SDK starts or stops | |||||
*cdap support-bundle | Distributed, SDK | Logs, jmap, jstack, environment vars + below | |||||
*cdap info | Distributed, 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.
...