Hello On Tue, 24 Jul 2007, Lucas Naz?rio dos Santos wrote:
> 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: Glad it more or less works for you. :-) > 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. I took a quick look at the code, and it seems Hadoop will issue this interactive prompt (which is causing service startup to fail) if you tell it to format the namenode and the dfs directory already exists. There doesn't seem to be a way to force Hadoop to do the format. You might consider adding an option like this and submitting a patch or trying to figure out a way to delete the directory each time before starting the service. Cheers, Albert
