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

        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.
        Hide
        Santal Li added a comment -

        patch submit

        Show
        Santal Li added a comment - patch submit
        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
        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.
        Hide
        Jonathan Ellis added a comment -

        v2 now with log4j-tools goodness

        Show
        Jonathan Ellis added a comment - v2 now with log4j-tools goodness
        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
        Hide
        Hudson added a comment -
        Show
        Hudson added a comment - Integrated in Cassandra #357 (See http://hudson.zones.apache.org/hudson/job/Cassandra/357/ )

          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