Kafka
  1. Kafka
  2. KAFKA-81

wrong path in bin/kafka-run-class.sh

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.8.0
    • Component/s: packaging
    • Labels:
      None

      Description

      https://github.com/kafka-dev/kafka/issues/28

      monospace
      I just downloaded the official 0.6 archive:
      https://github.com/downloads/kafka-dev/kafka/kafka-0.6.zip

      and tried starting zookeeper / kafka.

      The above archive will extract the deps into a dir called "libs", but in bin/kafka-run-class.sh there's a loop to add the jars in "lib" to the classpath:

      for file in $base_dir/lib/*.jar;
      do
      CLASSPATH=$CLASSPATH:$file
      done

      It's a little more complicated then that. The tarball also places kafka-0.6.jar in the root of the directory, where no scripts look. config does not seem to have the log4j properties files, which makes zookeeper sad.
      monospace

        Activity

        Hide
        Jun Rao added a comment -

        This is fixed in 0.8.

        Show
        Jun Rao added a comment - This is fixed in 0.8.
        Hide
        Neha Narkhede added a comment -

        Since, we haven't received a patch yet, we will hand create the release zip for 0.7. Moving this to 0.8

        Show
        Neha Narkhede added a comment - Since, we haven't received a patch yet, we will hand create the release zip for 0.7. Moving this to 0.8
        Hide
        Chris Burroughs added a comment -

        I have not had a change to work on this. I still intended to, but anyone else should feel free to grab it since we can't release with this.

        Show
        Chris Burroughs added a comment - I have not had a change to work on this. I still intended to, but anyone else should feel free to grab it since we can't release with this.
        Hide
        Neha Narkhede added a comment -

        It will be great to improve the release-zip target in sbt. The following should be the contents of the zip file, created by the ./sbt release-zip file.

        kafka

        _bin (all scripts that are required to get kafka up and running, also includes various scripts hidden in contrib, java-examples and perf)
        _config (all related config files )
        _lib (all dependent libraries required by various scripts in bin)
        _kafka-x.x.jar
        _kafka-java-examples-x.x.jar
        _kafka-perf-x.x.jar
        _hadoop-consumer_x.x.jar
        _hadoop-producer-x.x.jar
        Show
        Neha Narkhede added a comment - It will be great to improve the release-zip target in sbt. The following should be the contents of the zip file, created by the ./sbt release-zip file. kafka _bin (all scripts that are required to get kafka up and running, also includes various scripts hidden in contrib, java-examples and perf) _config (all related config files ) _lib (all dependent libraries required by various scripts in bin) _kafka-x.x.jar _kafka-java-examples-x.x.jar _kafka-perf-x.x.jar _hadoop-consumer_x.x.jar _hadoop-producer-x.x.jar

          People

          • Assignee:
            Unassigned
            Reporter:
            Chris Burroughs
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development