Esempio n. 1
0
        /// <exception cref="System.Exception"/>
        public virtual void TestGetContainersOnHA()
        {
            IList <ContainerReport> reports = client.GetContainers(cluster.CreateFakeApplicationAttemptId
                                                                       ());

            NUnit.Framework.Assert.IsTrue(reports != null && !reports.IsEmpty());
            NUnit.Framework.Assert.AreEqual(cluster.CreateFakeContainerReports(), reports);
        }
Esempio n. 2
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public override IList <ContainerReport> GetContainers(ApplicationAttemptId applicationAttemptId
                                                       )
 {
     return(client.GetContainers(applicationAttemptId));
 }