@Override protected void processArguments(LinkedList<PathData> args) throws IOException { FileSystem[] childFileSystems = FileSystem.get(getConf()).getChildFileSystems(); if (null != childFileSystems) { for (FileSystem fs : childFileSystems) { Trash trash = new Trash(fs, getConf()); trash.expunge(); trash.checkpoint(); } } else { Trash trash = new Trash(getConf()); trash.expunge(); trash.checkpoint(); } } }
private void expunge() throws IOException { trash.expunge(); trash.checkpoint(); }
public void expunge() { try { trash.expunge(); trash.checkpoint(); } catch (IOException ex) { throw new HadoopException("Cannot expunge trash" + ex.getMessage(), ex); } }
@Override protected void processArguments(LinkedList<PathData> args) throws IOException { Trash trash = new Trash(getConf()); trash.expunge(); trash.checkpoint(); } }
@Override protected void processArguments(LinkedList<PathData> args) throws IOException { Trash trash = new Trash(getConf()); trash.expunge(); trash.checkpoint(); } }
@Override protected void processArguments(LinkedList<PathData> args) throws IOException { Trash trash = new Trash(getConf()); trash.expunge(); trash.checkpoint(); } }
private void expunge() throws IOException { getTrash().expunge(); getTrash().checkpoint(); }
Trash trash = new Trash(home.getPath(), conf); trash.expunge(); trash.checkpoint(); } catch (IOException e) { LOG.warn("Trash caught: "+e+". Skipping "+home.getPath()+".");
@Override protected void processArguments(LinkedList<PathData> args) throws IOException { FileSystem[] childFileSystems = FileSystem.get(getConf()).getChildFileSystems(); if (null != childFileSystems) { for (FileSystem fs : childFileSystems) { Trash trash = new Trash(fs, getConf()); trash.expunge(); trash.checkpoint(); } } else { Trash trash = new Trash(getConf()); trash.expunge(); trash.checkpoint(); } } }