hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjay Radia <sra...@yahoo-inc.com>
Subject Re: how to find out name node is running
Date Wed, 26 Mar 2008 20:12:27 GMT
Andy Li wrote:
> I believe this class is the one you are looking for.
>
> org.apache.hadoop.dfs.namenode.metrics.NameNodeStatistics
>
> I just went through the API list from the website 0.16.0 and found this one.
> A blunt guess is that if you can invoke these method and get a response,
> then you can probably assume the namenode is alive.  But you will need to
> do some code hacking to figure out how to use it and study it a little bit
> to understand
> what is going on underneath to confirm.  Just a reference.
>   
Not this can work even if NN is dead.
See the next email which explains how to connect to NN and gets it status.
> -Andy
>
> On Tue, Mar 25, 2008 at 11:16 PM, Ipraveen <praveen.jain@tarmin.com> wrote:
>
>   
>> yes you are right Andy , i want to know is there is any hadoop library api
>> which can trace name node or datnode
>>  ?
>>
>>
>> Andy Li-3 wrote:
>>     
>>> That's relying on Java Virtual Machine process status tool, similar to
>>>       
>> 'ps
>>     
>>> aux|grep java' on a Linux?
>>>
>>> I think the question is whether there is any API from Hadoop library
>>>       
>> which
>>     
>>> can monitor the namenode
>>> through a Java API without relying 3rd party utility tool.  Am I right?
>>>
>>> -Andy
>>>
>>> On Tue, Mar 25, 2008 at 6:26 AM, Zhu Huijun <nautilushj@gmail.com>
>>>       
>> wrote:
>>     
>>>> Type the command "jps" in your command window. If your name node is
>>>> running,
>>>> there will be an output item of "Namenode". Or check the web page at
>>>> http://localhost:50070 if you did not change the default server host
>>>>         
>> and
>>     
>>>> port of the web.
>>>>
>>>> 2008/3/25, Ipraveen <praveen.jain@tarmin.com>:
>>>>         
>>>>> hi
>>>>> how would i know whether a name node is runnning or not?
>>>>> by using hadoop API for java.
>>>>>
>>>>> regards
>>>>> praveen jain
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>>           
>> http://www.nabble.com/how-to-find-out-name-node-is-running-tp16274770p16274770.html
>>     
>>>>> Sent from the Hadoop core-dev mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>           
>>>       
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-find-out-name-node-is-running-tp16274770p16296276.html
>> Sent from the Hadoop core-dev mailing list archive at Nabble.com.
>>
>>
>>     
>
>   


Mime
View raw message