Ejemplo n.º 1
0
        /// <exception cref="System.IO.IOException"/>
        /// <exception cref="System.Exception"/>
        /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
        private void Failover()
        {
            int activeRMIndex = cluster.GetActiveRMIndex();

            cluster.StopResourceManager(activeRMIndex);
            NUnit.Framework.Assert.AreEqual("Failover failed", (activeRMIndex + 1) % 2, cluster
                                            .GetActiveRMIndex());
            cluster.RestartResourceManager(activeRMIndex);
        }