Can't start CLI when path has a space

Details

Fixed an issue with starting the CDAP CLI and the CDAP Standalone when the on-disk path has a space in it.

Rank:

1|hzzbif:

Description

I downloaded the sdk.zip and unzipped into a directory named "cdap-sdk-3.4.0-SNAPSHOT 2" (note the space). Starting CDAP using ./bin/cdap.sh start worked but created a new directory in the same folder named "cdap-sdk-3.4.0-SNAPSHOT%202" that only contains the data directory.

Also, when trying to start ./bin/cdap-cli.sh i get the following error:

[13] → ./bin/cdap-cli.sh
Error: Could not find or load main class 2.bin....libexec.co.cask.cdap.cdap-cli-3.4.0-SNAPSHOT.jar:.Users.russellsavage.Downloads.cdap-sdk-3.4.0-SNAPSHOT

Attachments

Issue Links

duplicates

CDAP-6931cdap-cli script fails if its under a path which has spaces in it