Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-15660

Unable to specify -e/--execute flag in cqlsh

    XMLWordPrintableJSON

    Details

      Description

      From mailing list:

      https://lists.apache.org/thread.html/r377099b632c62b641e4feef5b738084fc5369b0c7157fae867853597%40%3Cdev.cassandra.apache.org%3E

      The bug looks like this:

      $ /usr/bin/cqlsh -e 'describe keyspaces' -u cassandra -p cassandra 127.0.0.1
      
      Usage: cqlsh.py [options] [host [port]]cqlsh.py: error: '127.0.0.1' is not a valid port number.
      

      This is working in 3.x releases just fine but fails on 4.

      The workaround for 4.x code as of today is to put these statements into file and use "-f" flag.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jasonstack Zhao Yang
                Reporter:
                stefan.miklosovic Stefan Miklosovic
                Authors:
                Zhao Yang
                Reviewers:
                Brandon Williams, Dinesh Joshi
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m