----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/46345/#review129421 -----------------------------------------------------------
ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py (lines 485 - 490) <https://reviews.apache.org/r/46345/#comment192846> Part of the problem; the component being installed is conf-select'd which creates the initial symlink of: ``` /etc/hadoop/conf -> /etc/hadoop/conf.backup ``` We need to ensure that even if we're skipping links that the links are to the correct places ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py (lines 550 - 554) <https://reviews.apache.org/r/46345/#comment192848> At this point we're committed to creating a link so we need to make sure that whatever might be there is removed first (whether that's a link or directory) - Jonathan Hurley On April 18, 2016, 4:13 p.m., Jonathan Hurley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/46345/ > ----------------------------------------------------------- > > (Updated April 18, 2016, 4:13 p.m.) > > > Review request for Ambari, Alejandro Fernandez and Nate Cole. > > > Bugs: AMBARI-15950 > https://issues.apache.org/jira/browse/AMBARI-15950 > > > Repository: ambari > > > Description > ------- > > STR: > > - Install cluster on HDP 2.3 > - Add a host with DataNode after cluster has been installed > > For hosts part of the cluster creation: > {code} > [root@os-r6-orydgs-upg-sanity-211-5 /]# ls -la /etc/hadoop/ > total 24 > drwxr-xr-x. 4 root root 4096 Apr 18 04:49 . > drwxr-xr-x. 114 root root 12288 Apr 18 10:53 .. > drwxr-xr-x. 3 root root 4096 Apr 18 04:49 2.3.4.0-3485 > lrwxrwxrwx. 1 root root 35 Apr 18 04:49 conf -> > /usr/hdp/current/hadoop-client/conf > drwxr-xr-x. 2 root root 4096 Apr 18 04:49 conf.install > {code} > > For hosts was added after cluster creation: > {code} > [root@os-r6-orydgs-upg-sanity-211-2 ~]# ls -la /etc/hadoop > total 16 > drwxr-xr-x. 4 root root 4096 Apr 18 09:34 . > drwxr-xr-x. 80 root root 4096 Apr 18 09:35 .. > drwxr-xr-x. 3 root root 4096 Apr 18 09:34 2.3.4.0-3485 > lrwxrwxrwx. 1 root root 23 Apr 18 09:34 conf -> /etc/hadoop/conf.backup > drwxr-xr-x. 2 root root 4096 Apr 18 10:36 conf.backup > {code} > > This causes the {{/etc/<component>/conf}} folder to point indefinitely to the > {{/etc/<component>/conf.backup}}. > > > Diffs > ----- > > > ambari-common/src/main/python/resource_management/libraries/functions/conf_select.py > 7ce4a6f > > Diff: https://reviews.apache.org/r/46345/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Jonathan Hurley > >