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

Can't Symlink to Kafka bins

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.10.1.1
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      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

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

              Dates

              • Created:
                Updated: