Hello,

I'm trying to get Hadoop running as Windows service, but strange things
happen,
preventing me from finishing the task. Notice that I can run Hadoop in the
usual
way, using cygwin over Windows XP.

I took the solution of running Hadoop as a service from
https://issues.apache.org/jira/browse/HADOOP-1525. This address contains
a bunch of files, and also some instructions about how to execute them:

Here are my steps:

1) I downloaded all file attachments from
https://issues.apache.org/jira/browse/HADOOP-1525, putting .conf files
inside Hadoop's /conf folder, and .bat files inside the /bin directory of
Hadoop

2) I also changed the value of the property "wrapper.app.parameter.2",
within the
namenode-wrapper.conf file, to "-format", because I want everything to be
formatted
every time I initialize the namenode

3) I downloaded the version 3.2.3 of the Java Service Wrapper (JSW), in it's
binary
form, for windows

4) then I copied the file wrapper.exe from JSW to Hadoop's /bin folder

5) and also copied some files - wrapper.dll and wrapper.jar - from JSW's
/lib folder,
to Hadoop's /lib folder


This step was also covered:

Adding the following line to the wrapper configurations allows df to be found
if Cygwin is installed so that the DataNode service can work:

# Set PATH so that the df command can be found
set.PATH=C:/cygwin/bin;%PATH%


Then I executed the InstallService.bat file (one that I downloaded from the
issue
tracker). And here everything went fine. Three services were created, one
for the
namenode, another for the datanode, and a third one: the secondary namenode.

Here is the problem: when trying to initialize the namenode executing the
file
namenode.bat, I've got the following message:

---------------------------------------------------------------------------------------------------------------------
c:\hadoop-install\hadoop\bin>namenode.bat
wrapper       | --> Wrapper Started as Console
wrapper       | Lauching a JVM...
jvm 1           | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1           |     Copyright 1999-2006 Tanuki Software, Inc. All Rights
Reserved.
jvm 1           |
jvm 1           | Re-format filesystem in \tmp\hadoop-lucas\dfs\name ? (Y or
N)
Y
wrapper       | <-- Wrapper Stopped
---------------------------------------------------------------------------------------------------------------------

This occurs idenpendent of the format step, and prevents me from properly
starting
the namenode.


Any help is appreciate!

Lucas Nazário

Reply via email to