TezSession tezSession = null;
AMConfiguration amConfig = new AMConfiguration(null,
null, tezConf, instance.credentials);
if (useTezSession) {
LOG.info("Creating Tez Session");
TezSessionConfiguration sessionConfig =
new TezSessionConfiguration(amConfig, tezConf);
tezSession = new TezSession("OrderedWordCountSession", appId,
sessionConfig);
tezSession.start();
LOG.info("Created Tez Session");
}