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

Setting dataset instance properties through CLI is confusing.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 4.1.0
    • Component/s: CLI
    • Labels:
    • Release Notes:
      Improved and clarified certain of the CDAP CLI help text and its error messages.
    • Rank:
      1|hzzhjr:

      Description

      Setting dataset instance properties through CLI is confusing:
      1. When we get dataset instance properties we get them JSON format, so user might expect to use the JSON while setting properties through CLI.
      2. We need to add documentation to the command explaining the format of the properties that should be provided. Currently we accept them in "key1=value1 key2=value2" format.
      3. When invalid properties are provided, we get following message

      cdap (http://localhost:10000/namespace:default)> set dataset instance properties counts "invalid_property"
      Successfully updated properties for dataset instance 'counts' to {}
      

        Attachments

          Activity

            People

            • Assignee:
              andreas Andreas Neumann
              Reporter:
              sagar Sagar Kapare
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: