Cassandra
  1. Cassandra
  2. CASSANDRA-766

SSTableExport can not accept -f , -k options

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Fix Version/s: 0.6
    • Component/s: Tools
    • Labels:
      None
    • Environment:

      Linux

      Description

      the SSTableExport command can not accept -f , -k options correct, always said as bellow:

      [root@hfdevcasda01 bin]# ./sstable2json -f out.json /opt/cassandra-wbx/data/CONTENT_HF/ChangeHistory-2-Data.db
      You must supply exactly one sstable
      Usage: org.apache.cassandra.tools.SSTableExport [-f outfile] <sstable> [-k key [-k key [...]]]

      1. issue766.patch
        0.5 kB
        Santal Li
      2. 766.txt
        5 kB
        Jonathan Ellis
      3. 766-v2.txt
        7 kB
        Jonathan Ellis

        Activity

        Santal Li created issue -
        Hide
        Santal Li added a comment -

        just remove one extra line will resolve this problem.

        Show
        Santal Li added a comment - just remove one extra line will resolve this problem.
        Santal Li made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Santal Li added a comment -

        patch submit

        Show
        Santal Li added a comment - patch submit
        Santal Li made changes -
        Attachment issue766.patch [ 12434915 ]
        Hide
        Santal Li added a comment -

        my bad, create a wrong patch file

        Show
        Santal Li added a comment - my bad, create a wrong patch file
        Santal Li made changes -
        Attachment issue766.patch [ 12434916 ]
        Santal Li made changes -
        Attachment issue766.patch [ 12434915 ]
        Hide
        Jonathan Ellis added a comment -

        -f was supposed to be removed but I did it poorly. this patch finishes the job and uses log4j of WARN,stderr for bin/ tools so that doesn't get in the way of redirecting stdout.

        Show
        Jonathan Ellis added a comment - -f was supposed to be removed but I did it poorly. this patch finishes the job and uses log4j of WARN,stderr for bin/ tools so that doesn't get in the way of redirecting stdout.
        Jonathan Ellis made changes -
        Attachment 766.txt [ 12435471 ]
        Jonathan Ellis made changes -
        Assignee Jonathan Ellis [ jbellis ]
        Hide
        Jonathan Ellis added a comment -

        v2 now with log4j-tools goodness

        Show
        Jonathan Ellis added a comment - v2 now with log4j-tools goodness
        Jonathan Ellis made changes -
        Attachment 766-v2.txt [ 12435475 ]
        Hide
        Eric Evans added a comment -

        +1

        Show
        Eric Evans added a comment - +1
        Hide
        Jonathan Ellis added a comment -

        committed

        Show
        Jonathan Ellis added a comment - committed
        Jonathan Ellis made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jonathan Ellis made changes -
        Fix Version/s 0.6 [ 12314361 ]
        Hide
        Hudson added a comment -
        Show
        Hudson added a comment - Integrated in Cassandra #357 (See http://hudson.zones.apache.org/hudson/job/Cassandra/357/ )
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12498082 ] patch-available, re-open possible [ 12750568 ]
        Gavin made changes -
        Workflow patch-available, re-open possible [ 12750568 ] reopen-resolved, no closed status, patch-avail, testing [ 12756556 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        47s 1 Santal Li 05/Feb/10 01:44
        Patch Available Patch Available Resolved Resolved
        5d 18h 6m 1 Jonathan Ellis 10/Feb/10 19:50

          People

          • Assignee:
            Jonathan Ellis
            Reporter:
            Santal Li
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1m
              1m
              Remaining:
              Remaining Estimate - 1m
              1m
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development