TemplateBuilder masterTemplateBuilder = computeService.templateBuilder()
.options(runScript(nnjtBootScript)
.installPrivateKey(clusterSpec.getPrivateKey())
.authorizePublicKey(clusterSpec.getPublicKey()));
TemplateBuilderStrategy strategy = new HadoopTemplateBuilderStrategy();
strategy.configureTemplateBuilder(clusterSpec, masterTemplateBuilder);
Template masterTemplate = masterTemplateBuilder.build();
InstanceTemplate instanceTemplate = clusterSpec.getInstanceTemplate(MASTER_ROLE);
checkNotNull(instanceTemplate);