You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Satyam Singh <sa...@ericsson.com> on 2014/08/15 18:56:22 UTC
Don't want to read during namenode is in safemode
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
Re: Don't want to read during namenode is in safemode
Posted by Harsh J <ha...@cloudera.com>.
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
Re: Don't want to read during namenode is in safemode
Posted by Harsh J <ha...@cloudera.com>.
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
Re: Don't want to read during namenode is in safemode
Posted by Harsh J <ha...@cloudera.com>.
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
Re: Don't want to read during namenode is in safemode
Posted by Harsh J <ha...@cloudera.com>.
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