You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Harsh J <ha...@cloudera.com> on 2014/08/16 06:28:00 UTC

Re: Don't want to read during namenode is in safemode

You can use org.apache.hadoop.hdfs.DistributedFileSystem#isInSafeMode()
API call to check if the NameNode is in safe-mode. It returns a simple
boolean result.

On Fri, Aug 15, 2014 at 10:26 PM, Satyam Singh
<sa...@ericsson.com> wrote:
> Hi Users,
>
>
>
> Usually read operation is allowed when namenode is in safemode, due to this
> my application is showing faulty behaviour.
>
> I don't want to do even read operation during safemode state of namenode,
> but for this i have to check status of namenode before reading. I couldn't
> find any api which show namenode current status.
>
> Please help how can i fix this problem.
>
>
>
> Regards,
> Satyam



-- 
Harsh J