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

        Jun Rao made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.8 [ 12317244 ]
        Fix Version/s 0.8.1 [ 12322960 ]
        Resolution Fixed [ 1 ]
        Hide
        Jun Rao added a comment -

        This is fixed in 0.8.

        Show
        Jun Rao added a comment - This is fixed in 0.8.
        Joe Stein made changes -
        Fix Version/s 0.8.1 [ 12322960 ]
        Fix Version/s 0.8 [ 12317244 ]
        Neha Narkhede made changes -
        Fix Version/s 0.8 [ 12317244 ]
        Fix Version/s 0.7 [ 12317243 ]
        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
        Chris Burroughs made changes -
        Issue Type New Feature [ 2 ] Bug [ 1 ]
        Fix Version/s 0.7 [ 12317243 ]
        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.
        Alan Cabrera made changes -
        Workflow jira [ 12626033 ] no-reopen-closed, patch-avail [ 12626215 ]
        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
        Chris Burroughs made changes -
        Field Original Value New Value
        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}
        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}}
        Chris Burroughs created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development