Kafka
  1. Kafka
  2. KAFKA-255

A tool to UPDATE Zookeeper partition-offset with input from a file

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.1
    • Component/s: None
    • Labels:
      None

      Description

      A utility that updates the offset of broker partitions in ZK.

      This utility expects 2 input files as arguments:
      1. consumer properties file
      2. a file contains partition offsets data such as:
      (This output data file can be obtained by running kafka.tools.GetZkOffsets)

      test01/3-0:285038193
      test01/1-0:286894308

      1. kafka-255-v2.patch
        5 kB
        John Fung
      2. kafka-255-v1.patch
        4 kB
        John Fung

        Activity

        John Fung created issue -
        John Fung made changes -
        Field Original Value New Value
        Summary A tool to UPDATE Zookeeper partition-offset with input in JSONObject string A tool to UPDATE Zookeeper partition-offset with input from a file
        Description A utility that updates the offset of broker partitions in ZK from an input file containing JSONObject string

        This utility expects 2 input files as arguments:
         - 1. consumer properties file
         - 2. a file containing partition offsets data in JSONObject string such as:
               {"/consumers/group1/offsets/test_1/0-0":"100","/consumers/group1/offsets/test_1/0-1":"200"}
               This output data file can be obtained by running kafka.tools.GetZkOffsetsAsJSON

        ** Please note, this utility requires an external dependency of "JSON in Java" (http://www.json.org/java/index.html)
        A utility that updates the offset of broker partitions in ZK.

        This utility expects 2 input files as arguments:
         1. consumer properties file
         2. a file contains partition offsets data such as:
             (This output data file can be obtained by running kafka.tools.GetZkOffsets)

             test01/3-0:285038193
             test01/1-0:286894308
        John Fung made changes -
        Attachment kafka-255-v1.patch [ 12512241 ]
        John Fung made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        John Fung made changes -
        Attachment kafka-255-v2.patch [ 12514391 ]
        Jun Rao made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 0.7.1 [ 12319140 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            John Fung
            Reporter:
            John Fung
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development