confluentinc / ksql

The database purpose-built for stream processing applications.
https://ksqldb.io
Other
119 stars 1.04k forks source link

KSQL server start main class not found #2135

Open HariPandey8 opened 5 years ago

HariPandey8 commented 5 years ago

Hi, While trying to ksql-server-start --help getting below error. I m trying to start through wsl.

Could not find or load main class io.confluent.ksql.rest.server.KsqlServerMain

Logs: if [ $# -lt 1 ]; then echo "USAGE: $0 [-daemon] ksql-server.properties" exit 1 fi

base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd ) cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd dirname "${BASH_SOURCE[0]}" +++ dirname ./bin/ksql-server-start ++ cd ./bin/.. ++ pwd

: "${KSQL_LOG4J_OPTS:=""}"

EXTRA_ARGS="-name ksql-server -loggc"

if [ -z "$KSQL_OPTS" ]; then KSQL_OPTS=-Dksql.server.install.dir=$base_dir else KSQL_OPTS="${KSQL_OPTS} -Dksql.server.install.dir=$base_dir" fi

export KSQL_OPTS

TODO: Enable specification of properties via command-line arg in the KsqlRestApplication class

so that useful defaults for bootstrap server, port, etc. can be established here

exec "$base_dir"/bin/ksql-run-class io.confluent.ksql.rest.server.KsqlServerMain $EXTRA_ARGS "$@"

OneCricketeer commented 5 years ago

Based on /mnt/c/ you are using Windows?

HariPandey8 commented 5 years ago

Yes correct I using windows wsl feature on which I m trying to setup but after trying multiple time I got success for once where all services were up and running but when I tried to restart it again then zookeeper service is up but enable start Kafka and giving error failing to start kafka

OneCricketeer commented 5 years ago

I would suggest not using WSL, and rather use the windows/*.bat files for each respective service.

Plus, running the beta builds might not be as stable as the official releases

HariPandey8 commented 5 years ago

Thank you.

I tried with official build as well I took the clone of master repo. Same there as well. Why I am trying to setup this on wsl as I want to use KSQL which I didn't find for window.

OneCricketeer commented 5 years ago

I was referring to Kafka and Zookeeper windows scripts, actually.

Regarding the problem, it seems to be related to #402. The alternatives being Cygwin, Docker, or just a VM