I found that novice user experience rather hard when trying with Windows,
however it is possible with a few pitfalls to avoid.

First of all make sure that you have your JAVA_HOME set to a directory
without spaces (however if you are able to start some of the scripts, you
may already have).
If you have installed Java in a dir in c:\Program Files\Java, change the
JAVA_HOME to the short 8.3 path like c:\progra~1\java\jdk1.8.0-121

When starting zookeeper, look into the log of it if it has started and
check with jps if the process is running

When running nimbus, everything should work (assuming that zookeeper is
accessible)

When starting supervisor, there is an error in the start script for
Windows, the fix is in the branch for 1.0.x:

https://raw.githubusercontent.com/apache/storm/1.0.x-branch/bin/storm.cmd

Supervisor tries to create symbolic links in Windows 10, which is a pain
because a regular user is now allowed to create links so the process will
bomb out with a permission exception

The easiest solution to fix that right now is to run the java process with
elevated privileges as Administrator as described here:

http://storm.apache.org/releases/2.0.0-SNAPSHOT/windows-users-guide.html
A newer version of the page is here
https://github.com/apache/storm/blob/1.0.x-branch/docs/windows-users-guide.md




On Wed, Mar 22, 2017 at 5:11 AM, pranav datar <[email protected]>
wrote:

> Hello,
>
> I am new storm user. I am trying to set up storm on my windows 7 64 bit
> machine.
>
> I am getting this error on storm ui
>
> org.apache.storm.utils.NimbusLeaderNotFoundException:
>     Could not find leader nimbus from seed hosts [localhost]
>
> and this thing in nimbus logs-->
>
> main-SendThread(0:0:0:0:0:0:0:1:2181) o.a.s.s.o.a.z.ClientCnxn
>     [WARN]Session 0x0 for server null, unexpected error,
>     closing socket connection and attempting reconnect
>     java.net.ConnectException: Connection refused: no further information
>     at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
>     at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:701)
>     at org.apache.storm.shade.org.apache.zookeeper.ClientCnxnSocketNIO.
>     doTransport (ClientCnxnSocketNIO.java:361) at org.apache.storm.shade.org.
>     apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
>     2017-03-13 22:00:10.937 main-SendThread(0:0:0:0:0:0:0:1:2181)o.a.s.s.
>     o.a.z.ClientCnxn [INFO] Opening socket connection
>     to server 127.0.0.1/127.0.0.1:2181. Will not attempt to
>     authenticate using SASL (unknown error)
>
>
> My config settings are -
>
> zoo.cfg
>
> tickTime=2000
> initLimit=5
> syncLimit=2
> dataDir=C:/Server-Local/zookeeper-3.4.9/data
> clientPort=2181
>
> storm.yaml
>
> storm.zookeeper.servers:
>   - "localhost"
> storm.local.dir: "C:/Server-Local/apache-storm-1.0.3/data"
> nimbus.host: "localhost"
> storm.zookeeper.port: 2181
> ui.port: 8090
> supervisor.slots.ports:
>   - 6700
>   - 6701
>   - 6702
>   - 6703
>
> I have checked the zookeeper status and it is not started and that's the
> issue.
> How should I fix it?? I appreciate any kind of leads.
>
> Thanks,
> Pranav
>



-- 
Alexander Lehmann <[email protected]>
https://about.me/alexlehm

Reply via email to