cdap-cli.sh does not work in non-interactive mode

Description

At least three issues:
1. The shell script does not pass the arguments to the JVM. Therefore CliMain never received arguments and goes into interactive mode.

I fixed that locally by editing the script to pass $@ to the JVM.

2. It prints lots of log messages (DEBUG level) which should not show. It also prints warnings from SLF4J

3. The script cd's into the CDAP home directory. That is wrong, because it makes all paths that the user types invalid. For example, when trying to deploy an app:

It should instead determine the CDAP home, set the classpath relative to that but stay in the current directory.

Issues 2. and 3. apply to interactive and non-interactive mode.

Release Notes

None
100% Done
Loading...

Activity

Show:

Alvin Wang October 7, 2014 at 10:33 PM

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Components

Fix versions

Priority

Created October 4, 2014 at 1:11 AM
Updated March 27, 2015 at 7:32 PM
Resolved October 7, 2014 at 10:33 PM