clusterEntity = new Cluster();
clusterEntity.setName(name);
clusterEntity.setColo("local");
clusterEntity.setDescription("Embeded cluster: " + name);
Interfaces interfaces = new Interfaces();
interfaces.getInterfaces().add(newInterface(Interfacetype.WORKFLOW,
"http://localhost:41000/oozie", "0.1"));
String fsUrl = conf.get("fs.default.name");
interfaces.getInterfaces().add(newInterface(Interfacetype.READONLY, fsUrl, "0.1"));
interfaces.getInterfaces().add(newInterface(Interfacetype.WRITE, fsUrl, "0.1"));
interfaces.getInterfaces().add(newInterface(Interfacetype.EXECUTE,
"localhost:41021", "0.1"));
interfaces.getInterfaces().add(
newInterface(Interfacetype.REGISTRY, "thrift://localhost:49083", "0.1"));
interfaces.getInterfaces().add(
newInterface(Interfacetype.MESSAGING, "vm://localhost", "0.1"));
clusterEntity.setInterfaces(interfaces);
Location location = new Location();
location.setName("staging");