Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> SIMPLE authentication is not enabled. Available:[TOKEN]


Copy link to this message
-
Re: SIMPLE authentication is not enabled. Available:[TOKEN]
Here's my sample for your reference  ( If you are running unmanaged AM in
client side):

1.  set token in UserGroupInformation
2.  do the registration in the way of UserGroupInformation as following

 try {

      ugi.addToken(yarnClient.getAMRMToken(appId));

      ugi.doAs(new PrivilegedExceptionAction<Void>() {

        @Override

        public Void run() throws Exception {

          AMRMClient<ContainerRequest> amRMClient = AMRMClient

              .createAMRMClient();

          amRMClientAsync =
AMRMClientAsync.createAMRMClientAsync(amRMClient,

              200, new InnerCallbackHandler());

          amRMClientAsync.init(conf);

          amRMClientAsync.start();

          amRMClientAsync.registerApplicationMaster("localhost", 0, "url");

          return null;

        }

      });

    } catch (Throwable ex) {

      ex.printStackTrace();

    }
On Sun, Mar 16, 2014 at 8:19 PM, Oleg Zhurakousky <
[EMAIL PROTECTED]> wrote:

Best Regards

Jeff Zhang

 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB