Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4566

Can't Symlink to Kafka bins

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.10.1.1
    • None
    • tools

    Description

      in the kafka consumer for example, the last line is :
      https://github.com/apache/kafka/blob/trunk/bin/kafka-console-consumer.sh#L21

      exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsoleConsumer "$@"
      

      if I create a symlink using

      ln -s
      

      it doesn't resolve the right directory name because of $(dirname $0)

      I believe the right way is to do:

      "$(dirname "$(readlink -e "$0")")"
      

      Any thoughts on that before I do a PR?

      Attachments

        Activity

          People

            akhilesh_naidu Akhilesh Naidu
            stephane.maarek@gmail.com Stephane Maarek
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated: