> On July 24, 2017, 9:06 p.m., Alejandro Fernandez wrote: > > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog252.java > > Lines 310 (patched) > > <https://reviews.apache.org/r/61050/diff/1/?file=1780886#file1780886line310> > > > > MySQL shouldn't be restarted prior to the EU. > > I would prefer to have this be in the EU config packs.
Hello Alejandro, as Tim had explained to Sumit """ Hi Sumit, Currently the flag is added during EU (AMBARI-21351) to handle both IOP 4.2 and 4.2.5. We also need this flag to be added during Ambari upgrade for IOP 4.2.5 to restart MySQL prior to the EU (IOP 4.2 is self-contained, thus not need this flag for restarting MySQL) """ The restart of Hive prior to EU is necessary because the service gets marked as needing an restart post Ambari upgrade against IOP 4.2.5. If you skip restarting it, upgrade precheck will throw a service check hasn't run error. Upgrade pack already has the change to deal with both IOP 4.2.0 and IOp 4.2.5. This change here is specially for IOP 4.2.5. This flag will exist on a migrated cluster for as long as HDP yet to support MariaDB (where HDP uses mysql.d deamon instead) - Di ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/61050/#review181265 ----------------------------------------------------------- On July 21, 2017, 8:18 p.m., Di Li wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/61050/ > ----------------------------------------------------------- > > (Updated July 21, 2017, 8:18 p.m.) > > > Review request for Ambari, Alejandro Fernandez, Jonathan Hurley, Sid Wagle, > and Tim Thorpe. > > > Bugs: AMBARI-21555 > https://issues.apache.org/jira/browse/AMBARI-21555 > > > Repository: ambari > > > Description > ------- > > IOP uses MariaDB instead of MySQL when a cluster is on RedHat 7. HDP > 2.6/Ambari 2.5.2 is yet to support MariaDB. A special flag is introduced to > switch daemon type for migrated clusters. Currently the flag is added during > EU (AMBARI-21351) to handle both IOP 4.2 and 4.2.5. We also need this flag to > be added during Ambari upgrade for IOP 4.2.5 to restart MySQL ( IOP 4.2 is > self-contained, thus not need this flag for restarting MySQL) > > > Diffs > ----- > > > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog252.java > ea1b034 > > > Diff: https://reviews.apache.org/r/61050/diff/1/ > > > Testing > ------- > > patch cluster with ambari-server jar, run ambari-server upgrade, verify > mariadb_redhat_support=true got added to hive-env post ambari upgrade. > > > Thanks, > > Di Li > >
