@@ -0,0 +1,1891 @@
+package com.neverwinterdp.scribengin;%0A%0Aimport com.neverwinterdp.registry.Registry;%0Aimport com.neverwinterdp.registry.RegistryConfig;%0Aimport com.neverwinterdp.registry.zk.RegistryImpl;%0Aimport com.neverwinterdp.scribengin.shell.ScribenginShell;%0Aimport com.neverwinterdp.vm.HadoopProperties;%0Aimport com.neverwinterdp.vm.VMConfig;%0Aimport com.neverwinterdp.vm.client.VMClient;%0Aimport com.neverwinterdp.vm.client.YarnVMClient;%0A%0Apublic class ShellMain %7B%0A  static public void main(String%5B%5D args) throws Exception %7B%0A    System.setProperty(%22HADOOP_USER_NAME%22, %22neverwinterdp%22); %0A    if((args.length %3E 0 && args%5B0%5D.equals(%22help%22)) %7C%7C args.length %3C 1)%7B%0A      if(args.length %3C 1)%7B%0A        args = new String%5B%5D%7B%22help%22%7D;%0A      %7D%0A      Registry registry = new RegistryImpl();%0A      VMClient vmClient = new VMClient(registry);%0A      ScribenginShell shell = new ScribenginShell(vmClient) ;%0A      shell.execute(args);%0A      return;%0A    %7D%0A    String zkConnect = System.getProperty(%22shell.zk-connect%22);%0A    RegistryConfig registryConfig = RegistryConfig.getDefault();%0A    registryConfig.setConnect(zkConnect);%0A    Registry registry = null;%0A    try%7B%0A      registry = new RegistryImpl(registryConfig).connect();%0A    %7D catch(Exception e)%7B%0A      System.err.println(%22Could not connect to the registry at: %22+ registryConfig.getConnect()+%22%5Cn%22+e.getMessage());%0A      return;%0A    %7D%0A    %0A    String hadoopMaster = System.getProperty(%22shell.hadoop-master%22);%0A    HadoopProperties hadoopProps = new HadoopProperties() ;%0A    hadoopProps.put(%22yarn.resourcemanager.address%22, hadoopMaster + %22:8032%22);%0A    hadoopProps.put(%22fs.defaultFS%22, %22hdfs://%22 + hadoopMaster +%22:9000%22);%0A    %0A    YarnVMClient vmClient = new YarnVMClient(registry, VMConfig.ClusterEnvironment.YARN, hadoopProps) ;%0A    ScribenginShell shell = new ScribenginShell(vmClient) ;%0A    shell.attribute(HadoopProperties.class, hadoopProps);%0A    shell.execute(args);%0A  %7D%0A%7D

Implement V2