ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez" <>
Subject Re: Review Request 41273: AMBARI-14307. RU: Kafka broker restart failed on downgrade from HDP 2.3 to 2.2 due to circular symlink of /etc/hadoop/conf
Date Mon, 14 Dec 2015 07:17:04 GMT

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

(Updated Dec. 14, 2015, 7:17 a.m.)

Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, Jonathan Hurley, Jayush Luniya,
and Nate Cole.

Bugs: AMBARI-14307

Repository: ambari


* Ambari 2.2 at hash for AMBARI-14237 (e15d1e0fb3777f79cb473cf5de0f7a6bf30e63bd)
* HDP with HDFS, YARN/MR, ZK, Kafka (this host does not contain any hadoop components)
* RU from  to and reach the Finalize screen.
* Then downgrade,

Kafka broker restart failed on downgrade
Traceback (most recent call last):
  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/\",
line 39, in <module>
  File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/\",
line 217, in execute
  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/\",
line 36, in hook
  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/\",
line 69, in create_topology_script_and_mapping
  File \"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/\",
line 36, in create_topology_mapping
  File \"/usr/lib/python2.6/site-packages/resource_management/core/\", line 154, in
  File \"/usr/lib/python2.6/site-packages/resource_management/core/\", line
158, in run
    self.run_action(resource, action)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/\", line
121, in run_action
  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/\",
line 144, in action_create
    raise Fail(\"Applying %s failed, looped symbolic links found while resolving %s\" % (self.resource,
resource_management.core.exceptions.Fail: Applying Directory['/etc/hadoop/conf'] failed, looped
symbolic links found while resolving /etc/hadoop/conf
Error: Error: Unable to run the custom hook script ['/usr/bin/python2', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/',
'START', '/var/lib/ambari-agent/data/command-2873.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START',
'/var/lib/ambari-agent/data/structured-out-2873.json', 'INFO', '/var/lib/ambari-agent/tmp']

This failed because /etc/hadoop/conf is now a circular symlink

Diffs (updated)

  ambari-common/src/main/python/resource_management/libraries/functions/ 7fd64b5

  ambari-common/src/main/python/resource_management/libraries/script/ 398cee8 
  ambari-server/src/main/resources/custom_actions/scripts/ 85d0d25 
  ambari-server/src/main/resources/custom_actions/scripts/ f8b38db 
  ambari-server/src/test/python/custom_actions/ 186b847 
  ambari-server/src/test/python/stacks/2.0.6/HDFS/ d2ffb3c 
  ambari-server/src/test/python/stacks/2.0.6/OOZIE/ 9e4560c 
  ambari-server/src/test/python/stacks/2.0.6/hooks/after-INSTALL/ 5fd5ef6

  ambari-server/src/test/python/stacks/2.2/KAFKA/ 72cb050 



Tested on the following code paths,

1. Fresh install of HDP 2.1
2. Installed bits for HDP 2.3 and verified the conf folder structure
3. EU to HDP 2.3
4. Installed HDFS client on the host that didn't have /etc/hadoop/conf and then it symlinked
it to /usr/hdp/current/hadoop-client/conf

1. Fresh install of HDP 2.2
2. Installed bits for HDP 2.3 and verfied the conf folder structure
3. RU to HDP 2.3 and downgrade

Python unit tests passed,
Total run:853
Total errors:0
Total failures:0


Alejandro Fernandez

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