Confluent platform 3.0.1 windows scripts broked

794 views
Skip to first unread message

Ryan Worsley

unread,
Nov 15, 2016, 2:32:40 AM11/15/16
to Confluent Platform
Hi guys,

I've been working against a trunk build and recently decided I needed to switch to the 3.0.1 download from the confluent site.

However, when I try to run various startup scripts I get various exceptions; 
  • C:\kafka\bin\windows\../../etc/kafka/log4j.properties was unexpected at this time.
  • Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain.
I'm probably being a dunce!  Please advise!

Best,
Ryan.

Karolis Pocius

unread,
Nov 15, 2016, 2:42:53 AM11/15/16
to confluent...@googlegroups.com

Documentation (http://docs.confluent.io/3.1.0/installation.html) states that:

Confluent does not currently support Windows. Windows users can download and use the zip and tar archives, but will have to run the jar files directly rather than use the wrapper scripts in the bin/ directory.


On 2016.11.15 09:32, Ryan Worsley wrote:
Hi guys,

I've been working against a trunk build and recently decided I needed to switch to the 3.0.1 download from the confluent site.

However, when I try to run various startup scripts I get various exceptions;?
  • C:\kafka\bin\windows\../../etc/kafka/log4j.properties was unexpected at this time.
  • Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain.
I'm probably being a dunce! ?Please advise!

Best,
Ryan.
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/2d8591e2-507b-4093-9686-0bed77cf50c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Worsley

unread,
Nov 15, 2016, 11:40:51 AM11/15/16
to Confluent Platform
Ah Thank-you - I feel suitably silly for not having checked that!

In my defence, these scripts in the /bin/windows folder were working fine in a recent version.

Do you know if this is something that has been regressed?

Thanks,
Ryan.



On Tuesday, 15 November 2016 07:42:53 UTC, Karolis Pocius wrote:

Documentation (http://docs.confluent.io/3.1.0/installation.html) states that:

Confluent does not currently support Windows. Windows users can download and use the zip and tar archives, but will have to run the jar files directly rather than use the wrapper scripts in the bin/ directory.


On 2016.11.15 09:32, Ryan Worsley wrote:
Hi guys,

I've been working against a trunk build and recently decided I needed to switch to the 3.0.1 download from the confluent site.

However, when I try to run various startup scripts I get various exceptions;?
  • C:\kafka\bin\windows\../../etc/kafka/log4j.properties was unexpected at this time.
  • Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain.
I'm probably being a dunce! ?Please advise!

Best,
Ryan.
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.

Karolis Pocius

unread,
Nov 16, 2016, 1:56:11 AM11/16/16
to confluent...@googlegroups.com

I never had to or tried to run CP in Windows, so I wouldn't know.

To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.

To post to this group, send email to confluent...@googlegroups.com.

konst...@confluent.io

unread,
Nov 16, 2016, 2:57:39 PM11/16/16
to Confluent Platform

Hi Ryan, 

I've been running ZK and Kafka successfully on Windows server recently. 

The error message w.r.t the main ZK class not being found makes me suspect that your packages (jars) were not compiled with the scala version that is expected by the \bin scrips by default (That is 2.10.6) 

One thing to try first is to set the following two variable to match the scala version of your jars. 

For instance if the packages were built with scala 2.11.8 you should run: 

C:\yourpath> set SCALA_VERSION=2.11.8
C:\yourpath> set SCALA_BINARY_VERSION=2.11

Then, if all the necessary packages are available you should be able to start, first ZK: 

C:\yourpath>.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties

and then Kafka server: 

C:\yourpath>.\bin\windows\kafka-server-start.bat .\config\server.properties

Hope this helps. 
Konstantine

Waseem Hawaldar

unread,
Apr 16, 2019, 12:30:43 AM4/16/19
to Confluent Platform

I was getting same error when I placed kafka downloaded distribution in C:\Program Files (x86). Moving kafka downloaded distribution to some other drive other then c drive worked for me. find below working commands: D:\kafka_2.12-2.2.0\kafka_2.12-2.2.0>bin\windows\zookeeper-server-start.bat config/zookeeper.properties

Kafka was downloaded from it's official site: https://kafka.apache.org/quickstart

Raymond Rizzuto

unread,
Apr 16, 2019, 3:02:25 PM4/16/19
to Confluent Platform
It might not be the drive, but rather the embedded space between Program and Files in the original path.  
Reply all
Reply to author
Forward
0 new messages