Esempio n. 1
0
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="System.Exception"/>
 public virtual Org.Apache.Hadoop.Security.Token.Token GetDelegationToken(Text renewer
                                                                          )
 {
     try
     {
         return(ConverterUtils.ConvertFromYarn(client.GetRMDelegationToken(renewer), GetRMDelegationTokenService
                                                   ()));
     }
     catch (YarnException e)
     {
         throw new IOException(e);
     }
 }
Esempio n. 2
0
        /// <exception cref="System.Exception"/>
        public virtual void TestGetDelegationTokenOnHA()
        {
            Token token = client.GetRMDelegationToken(new Text(" "));

            NUnit.Framework.Assert.AreEqual(token, cluster.CreateFakeToken());
        }