Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10545

hdfs zkfc NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.4.0
    • None
    • None
    • None
    • Linux

    Description

      Running hdfs zkfc on a node which is not a Namenode result of NullPointerException.
      An error message should be displayed telling that zkfc must be run only on a Namenode server and/or to verify configuration parameters.

      1. hdfs zkfc -formatZK
        Exception in thread "main" java.lang.NullPointerException
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
        at org.apache.hadoop.hdfs.tools.NNHAServiceTarget.<init>(NNHAServiceTarget.java:57)
        at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.create(DFSZKFailoverController.java:128)
        at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:172)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sbarrier Sebastien Barrier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: