You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by ba...@gmail.com on 2006/07/06 04:09:53 UTC
Stopping datanode and namenode
I am using hadoop's DFS in tomcat and was curious how other people are
getting the deployment loader to work in conjunction with hadoop.
Essentially the problem I am having is:
1) tomcat started and war deployed and running
2) New war file dropped into webapps dir
3) tomcat unloads war file, thus shutting down everything...
4) tomcat unpacks and loads new war file
5) servlet not started due to hadoop errors
The issue is there is no way to stop the namenode or datanode, thus
when I unload my app the daemon threads from the first bootup are
still running, causing any subsequent load to have errors because
hadoop dfs's namenodes/datanodes are still up, with open sockets.
I see the code has some calls to stop the namenode for unit testing,
what about opening that up, or adding a calls to namenode and datanode
to shut them down?
Or am I missing something obvious :)
-Barry
Re: Stopping datanode and namenode
Posted by Eric Baldeschwieler <er...@yahoo-inc.com>.
Thats sounds cool. Sounds like something that would be great in the
examples directory. Then we could put some regressions in place to
make sure we don't break it as we uplevel things too.
Might it make more sense to run the datanode as a distinct process
and use the client in your servelet? I'm no expert on web farms,
just curious.
On Jul 6, 2006, at 1:03 AM, barry.kaplan@gmail.com wrote:
> I am not sure of what you are asking, but we are using DFS inside our
> servlet, which runs in tomcat, to allow us to distribute files in a
> cleaner, easier, method then an NFS share.
>
> To make things easier for us (especially operations) we have each of
> our servlets act as a datanode. This way each of our servers (web
> server), which only uses around 10GB of disk space, can take advantage
> of the rather cheap 40-100GB drives that are in them for the purpose
> of DFS.
Re: Re: Stopping datanode and namenode
Posted by ba...@gmail.com.
I am not sure of what you are asking, but we are using DFS inside our
servlet, which runs in tomcat, to allow us to distribute files in a
cleaner, easier, method then an NFS share.
To make things easier for us (especially operations) we have each of
our servlets act as a datanode. This way each of our servers (web
server), which only uses around 10GB of disk space, can take advantage
of the rather cheap 40-100GB drives that are in them for the purpose
of DFS.
Re: Stopping datanode and namenode
Posted by Eric Baldeschwieler <er...@yahoo-inc.com>.
what does one gain from running in tomcat?
Doesn't seem to be our standard methodology.
On Jul 5, 2006, at 7:09 PM, barry.kaplan@gmail.com wrote:
> I am using hadoop's DFS in tomcat and was curious how other people are
> getting the deployment loader to work in conjunction with hadoop.
> Essentially the problem I am having is:
>
> 1) tomcat started and war deployed and running
> 2) New war file dropped into webapps dir
> 3) tomcat unloads war file, thus shutting down everything...
> 4) tomcat unpacks and loads new war file
> 5) servlet not started due to hadoop errors
>
> The issue is there is no way to stop the namenode or datanode, thus
> when I unload my app the daemon threads from the first bootup are
> still running, causing any subsequent load to have errors because
> hadoop dfs's namenodes/datanodes are still up, with open sockets.
>
> I see the code has some calls to stop the namenode for unit testing,
> what about opening that up, or adding a calls to namenode and datanode
> to shut them down?
>
> Or am I missing something obvious :)
>
> -Barry
Re: Re: Stopping datanode and namenode
Posted by ba...@gmail.com.
Maybe, but the way we are doing it now allows us to have a very simple
deployment strategy.
Bug filed, with patch.
On 7/7/06, Doug Cutting <cu...@apache.org> wrote:
> barry.kaplan@gmail.com wrote:
> > I see the code has some calls to stop the namenode for unit testing,
> > what about opening that up, or adding a calls to namenode and datanode
> > to shut them down?
>
> +1
>
> The public APIs for all daemons (namenode, datanode, tasktracker,
> jobtracker) should include both start and stop methods. Please file a
> bug for this.
>
> Doug
>
Re: Stopping datanode and namenode
Posted by Doug Cutting <cu...@apache.org>.
barry.kaplan@gmail.com wrote:
> I see the code has some calls to stop the namenode for unit testing,
> what about opening that up, or adding a calls to namenode and datanode
> to shut them down?
+1
The public APIs for all daemons (namenode, datanode, tasktracker,
jobtracker) should include both start and stop methods. Please file a
bug for this.
Doug