client on Windows 7 - ERROR: Could not find or load main class backtype.storm.command.config_value

789 views
Skip to first unread message

stziva

unread,
Oct 1, 2011, 4:20:20 PM10/1/11
to storm-user
Hi all
Thanks for the great job you all do.
I believe that Storm is a very inspiration piece of sw that will
attract the community!

Now, on the problem:
Running "storm jar" script on a windows 7 machine trying to start a
remote cluster i get the error:
Could not find or load main class backtype.storm.command.config_value.

I googled it but no luck.

Any suggestions?

Thank you in advance
Stelios

nathanmarz

unread,
Oct 3, 2011, 2:19:09 AM10/3/11
to storm-user
Hi Stelios,

I was able to reproduce this on my Windows box and after a few hours
was able to get it to work on my machine. Can you try the following?

1. Replace your bin/storm script with the contents of this:
https://github.com/nathanmarz/storm/blob/master/bin/storm
2. Run the "storm" client from cygwin

Let me know if that solves your issue. It should work, but Windows can
be hairy so we may need to iterate a bit more.

-Nathan

stziva

unread,
Oct 4, 2011, 5:43:18 PM10/4/11
to storm-user
Nathan, Hi

Despite my effort the script did not work under cygwin on my machines
(Windows 7, Vista)
It kept showing windows filename in the case of get_classpath_conf
and unix ones on get_classpath.
I played with "-up" and "-wp" params on cygpath and the cp delimiter
";" and ":" but no luck.

Finally i made some minor changes and run the modified script under an
ordinary windows cmd shell.
It run OK (at least the jar command. Further testing is on the go)

The new script is at http://www.pastie.org/2640273

The changes are:
1. STORM_DIR = "/".join(os.path.abspath( __file__ ).split("\\")[:-2])

2. return normclasspath(";".join(ret) ) at get_classpath_conf

3. return normclasspath(";".join(ret) ) at get_classpath

4. Got rid of
prefix="export STORM_JAR=" + jarfile + ";") at function jar

If needed an equivalend cmd shell command can be issued to set the
STORM_JAR variable.


Thanks for your help and of course for storm!

Something more: I think an internet site hosting spouts and bolts
might be a good idea.

Stelios

nathanmarz

unread,
Oct 5, 2011, 1:14:50 AM10/5/11
to storm-user
OK, glad you were able to get it working. Looks like the Windows
support needs more work. I've opened an issue to that effect here:

https://github.com/nathanmarz/storm/issues/19

I'll think more about the best way for people to find and share bolt/
spout code. I'm open to suggestions.

-Nathan

stziva

unread,
Oct 5, 2011, 4:49:49 AM10/5/11
to storm-user
cool. thanks!
Stelios

stziva

unread,
Oct 5, 2011, 9:51:34 AM10/5/11
to storm-user
Nathan . hi again

of course we need the STORM_JAR variable.
Without it the storm script will report a null jar "Exception in
thread "main" java.lang.RuntimeException:
java.lang.NullPointerException"

so its imperative to "set STORM_JAR=<jar to submit>

I thing it would be more convenient to be passed as an argument and
not as a shell variable.

Thanks
Stelios


On Oct 5, 8:14 am, nathanmarz <nathan.m...@gmail.com> wrote:

nathanmarz

unread,
Oct 5, 2011, 4:18:40 PM10/5/11
to storm-user
Hey Stelios,

That's a good point. I'll change how that gets passed to Storm for the
next release so that it's cross-platform.

-Nathan
Reply all
Reply to author
Forward
0 new messages