Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-23126

cbimport says "-g" option is optional, but in fact it is required

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.0
    • Component/s: tools
    • Labels:
      None
    • Triage:
      Untriaged
    • Is this a Regression?:
      Unknown

      Description

      The help for cbimport indicates that -g is an optional argument, but if you leave it out you get the error:

       

      CSV import failed: Key generator contains an empty expression

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          build-team Couchbase Build Team added a comment -

          Build 5.0.0-2177 contains backup commit 9240ee518e9ab4dad065db3bdb42328992bc6633 with commit message:
          MB-23126: Make the g/-generator parameter required in 'cbimport csv'
          https://github.com/couchbase/backup/commit/9240ee518e9ab4dad065db3bdb42328992bc6633

          Show
          build-team Couchbase Build Team added a comment - Build 5.0.0-2177 contains backup commit 9240ee518e9ab4dad065db3bdb42328992bc6633 with commit message: MB-23126 : Make the g/ -generator parameter required in 'cbimport csv' https://github.com/couchbase/backup/commit/9240ee518e9ab4dad065db3bdb42328992bc6633
          Hide
          arunkumar Arunkumar Senthilnathan added a comment -

          Thuan Nguyen please verify and close this bug against spock

          Show
          arunkumar Arunkumar Senthilnathan added a comment - Thuan Nguyen please verify and close this bug against spock
          Hide
          hemant.rajput Hemant Rajput added a comment -

          -g option is not under Required Flags.

           

          Hemants-MBP:Downloads hemant$ /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbimport csv -help

          cbimport csv [<args>]

           

          Required Flags:

           

            c,-cluster                The hostname of the Couchbase cluster

            u,-username               The username of the Couchbase cluster

            p,-password               The password of the Couchbase cluster

            b,-bucket                 The bucket name to load the CSV data into

            d,-dataset                The location of the CSV data

            g,-generate-key           Generates a key name based on an expression

          Show
          hemant.rajput Hemant Rajput added a comment - -g option is not under Required Flags.   Hemants-MBP:Downloads hemant$ /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbimport csv -help cbimport csv [<args>]   Required Flags:     c, -cluster                The hostname of the Couchbase cluster   u, -username               The username of the Couchbase cluster   p, -password               The password of the Couchbase cluster   b, -bucket                 The bucket name to load the CSV data into   d, -dataset                The location of the CSV data   g, -generate-key           Generates a key name based on an expression

            People

            • Assignee:
              thuan Thuan Nguyen
              Reporter:
              eben Eben Haber
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.