FAQ
Hello,

I was wondering what is the best way to programmatically check if a cluster
is in HA mode, preferably from the java API? I tried a bunch of hacks like
checking if multiple namenodes exists or journalnodes are configured etc.
Is there a more robust way to do it that I am missing?

Thanks for the help,
--
Swarnim

To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

  • Kulkarni Swarnim at Mar 3, 2014 at 9:29 pm
    Hello,

    Any ideas on doing this will be much appreciated.

    Thanks,

    On Tue, Feb 18, 2014 at 4:26 PM, kulkarni.swarnim@gmail.com wrote:

    Hello,

    I was wondering what is the best way to programmatically check if a
    cluster is in HA mode, preferably from the java API? I tried a bunch of
    hacks like checking if multiple namenodes exists or journalnodes are
    configured etc. Is there a more robust way to do it that I am missing?

    Thanks for the help,
    --
    Swarnim


    --
    Swarnim

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Vikram Srivastava at Mar 3, 2014 at 11:02 pm
    Currently that's the only way to figure out if NN/HA is HA.

    BTW, for HDFS, if federation is also enabled, then simple count is not
    sufficient. You should also check if at least 2 NNs have
    "dfs_federation_namenode_nameservice" configured with the same value to see
    if a particular nameservice is HA. If federation is not enabled, then
    multiple namenodes check is sufficient.

    On Mon, Mar 3, 2014 at 1:28 PM, kulkarni.swarnim@gmail.com wrote:

    Hello,

    Any ideas on doing this will be much appreciated.

    Thanks,


    On Tue, Feb 18, 2014 at 4:26 PM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    Hello,

    I was wondering what is the best way to programmatically check if a
    cluster is in HA mode, preferably from the java API? I tried a bunch of
    hacks like checking if multiple namenodes exists or journalnodes are
    configured etc. Is there a more robust way to do it that I am missing?

    Thanks for the help,
    --
    Swarnim


    --
    Swarnim

    To unsubscribe from this group and stop receiving emails from it, send an
    email to scm-users+unsubscribe@cloudera.org.
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Kulkarni Swarnim at Mar 3, 2014 at 11:04 pm
    Thanks Vikram. Appreciate your response.

    On Mon, Mar 3, 2014 at 5:02 PM, Vikram Srivastava wrote:

    Currently that's the only way to figure out if NN/HA is HA.

    BTW, for HDFS, if federation is also enabled, then simple count is not
    sufficient. You should also check if at least 2 NNs have
    "dfs_federation_namenode_nameservice" configured with the same value to see
    if a particular nameservice is HA. If federation is not enabled, then
    multiple namenodes check is sufficient.


    On Mon, Mar 3, 2014 at 1:28 PM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    Hello,

    Any ideas on doing this will be much appreciated.

    Thanks,


    On Tue, Feb 18, 2014 at 4:26 PM, kulkarni.swarnim@gmail.com <
    kulkarni.swarnim@gmail.com> wrote:
    Hello,

    I was wondering what is the best way to programmatically check if a
    cluster is in HA mode, preferably from the java API? I tried a bunch of
    hacks like checking if multiple namenodes exists or journalnodes are
    configured etc. Is there a more robust way to do it that I am missing?

    Thanks for the help,
    --
    Swarnim


    --
    Swarnim

    To unsubscribe from this group and stop receiving emails from it, send an
    email to scm-users+unsubscribe@cloudera.org.

    --
    Swarnim

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedFeb 18, '14 at 10:26p
activeMar 3, '14 at 11:04p
posts4
users2
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase