Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1694 KIP-4: Command line and centralized operations
  3. KAFKA-1817

AdminUtils.createTopic vs kafka-topics.sh --create with partitions

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.2.0
    • None
    • None
    • None
    • debian linux current version up to date

    Description

      When topics are created using AdminUtils.createTopic in code, no partitions folder is created The zookeeper shell shows this.

      ls /brokers/topics/foshizzle
      []

      However, when kafka-topics.sh --create is run, the partitions folder is created:

      ls /brokers/topics/foshizzle
      [partitions]

      The unfortunately useless error message "KeeperErrorCode = NoNode for /brokers/topics/periodicReading/partitions" makes it unclear what to do. When the topics are listed via kafka-topics.sh, they appear to have been created fine. It would be good if the exception was wrapped by Kafka to suggested looking in the zookeeper shell so a person didn't have to dig around to understand what the meaning of this path is...

      Attachments

        Activity

          People

            Unassigned Unassigned
            longtimer Jason Kania
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: