Search code examples
apache-kafkaconfluent-platformksqldb

Ksql is not getting started. ksql-server-start: 32: exec: //bin/ksql-run-class: not found


Am unable to start ksql. Its providing below error,

ksql-server-start: 14: Bad substitution
ksql-server-start: 32: exec: //bin/ksql-run-class: not found

zookeeper and kafka server is started successfully

Any suggestion would be helpful


Solution

  • Found the solution for the issue,

    ksql-server-start

    Script in ksql-server-start file has a code to export the path $base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd ) and this code is not working executing via script. Changed the valuewith the actual path resolve the issue

    $base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd ) #Existing
    
    $base_dir=/path/to/confluent-5.5.1 # This resolved the issue
    

    This has to be done on ksql script as well