ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez" <>
Subject Review Request 30854: RU: Finalize fails because Secondary Namenode was not deleted during HA Wizard
Date Wed, 11 Feb 2015 00:19:52 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for Ambari, Dmitro Lisnichenko, Jonathan Hurley, Nate Cole, Robert Levas, Tom
Beerbower, and Yurii Shylov.

Bugs: AMBARI-9559

Repository: ambari


While performing a RU, it failed in Finalize because the SECONDARY_NAMENODE component was
still on an old version, since it was not deleted by the Namenode HA wizard.
This was a 3-node cluster with HDFS, MR, YARN, TEZ, Hive, ZK, Pig, AMS using HDP GA.

I was not able to reproduce this, even after installing the exact same services on the same
hosts, and using the same ambari-server version. It could be the case that some thread is
holding a reference to the object that is being deleted, so it persists. So I added another
check to PreUpgradeCheckResourceProvider that ensures that SECONDARY_NAMENODE is not present
on any hosts.


  ambari-server/src/main/java/org/apache/ambari/server/stack/ ed98aaf



Deployed a 3-node cluster with HDFS, ZK, and added Namenode HA. Then registered a repo and
distributed it to the hosts. Next, I stopped ambari-server and manually edited the database
to simulate SECONDARY_NAMENODE still being present.

INSERT INTO hostcomponentdesiredstate VALUES (2, 'SECONDARY_NAMENODE', E'{\"stackName\":\"HDP\",\"stackVersion\":\"2.2\"}',
'INSTALLED', '', 'HDFS', '', 'OFF', 'UNSECURED', 0);
INSERT INTO hostcomponentstate VALUES (2, 'SECONDARY_NAMENODE', '', E'{\"stackName\":\"HDP\",\"stackVersion\":\"2.2\"}',

I then queried,*&UpgradeChecks/repository_version=
and got the following, as expected,

  href: "",
  UpgradeChecks: {
    check: "The SECONDARY_NAMENODE component must be deleted from all hosts",
    check_type: "SERVICE",
    cluster_name: "c1",
    failed_on: [
    reason: "The SECONDARY_NAMENODE component must be deleted from host(s):
Please use the REST API to delete it.",
    repository_version: "",
    status: "FAIL"

Unit tests are in progress.


Alejandro Fernandez

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message