Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-9151

CLI new set and delete preferences command not working

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|hzzyjr:

      Description

      We introduce new preferences command in 4.1 at this pr: https://github.com/caskdata/cdap/pull/8026
      The new set and delete preferences cli command is not working, when I input "set app preferences HelloWorld system.log.level=ERROR", it gives me:
      Error: Invalid input. Expected format: set app preferences <app-id> <preferences>
      Similar error is given on delete.

      I investigated the set command, in SetPreferencesCommand, we check if the app id is a app-id.program-id pair, which is never true, result in a CommandInputError.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nitin Nitin Motgi
                Reporter:
                yaojie Yaojie Feng
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: