hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miles Osborne" <mi...@inf.ed.ac.uk>
Subject Re: best command line way to check up/down status of HDFS?
Date Fri, 27 Jun 2008 17:23:58 GMT
that won't work since the namenode may be down, but the secondary namenode
may be up instead

why not instead just look at the respective logs?

Miles

2008/6/27 Meng Mao <mengmao@gmail.com>:

> Is running:
> ps aux | grep [\\.]NameNode
>
> and looking for a non empty response a good way to test HDFS up status?
>
> I'm assuming that if the NameNode process is down, then DFS is definitely
> down?
> Worried that there'd be frequent cases of DFS being messed up but the
> process still running just fine.
>
> On Fri, Jun 27, 2008 at 10:48 AM, Meng Mao <mengmao@gmail.com> wrote:
>
> > For a Nagios script I'm writing, I'd like a command-line method that
> checks
> > if HDFS is up and running.
> > Is there a better way than to attempt a hadoop dfs command and check the
> > error code?
> >
>
>
>
> --
> hustlin, hustlin, everyday I'm hustlin
>



-- 
The University of Edinburgh is a charitable body, registered in Scotland,
with registration number SC005336.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message