Code example for FileNotFoundException

Methods: printStackTrace

0
      // prepare arguments to create a directory /data 
      args[0] = "-conf";
      args[1] = siteFile.getPath();
      execute(args, namenode); 
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    } finally { 
      siteFile.delete();
      configDir.delete();
    } 
  } 
     
  private void testPropertyOption(String[] args, String namenode) {
    // prepare arguments to create a directory /data 
    args[0] = "-D";
    args[1] = "fs.defaultFS="+namenode;
    execute(args, namenode);        
  } 
     
  private void execute(String [] args, String namenode) {