Mandroid
Mandroid

Reputation: 7514

Kafka error while running command to start zookeeper

I have kafka installed at following location

C:\Users\username\work\data\kafkadirectory\kafka\apache-kafka\kafka

Now, when I run following command at above location:

path/to/zookeeper-server-start.bat config\zookeeper.properties

I get error:

The input line is too long.

The syntax of the command is incorrect.

As can be seen, directory names don't include version(google search tells to get rid of version in directory names).

Still I face the issue.

Upvotes: 0

Views: 442

Answers (1)

user1112259
user1112259

Reputation:

Try the below-mentioned steps

  1. Better to move the folder to short path 'C:\kafka\' (Reducing folder hierarchy)
  2. Restart the command prompt to reset the classpath variable
  3. Use PowerShell which have longer support to the classpath

Upvotes: 0

Related Questions