/** * Convenience method for {@link #unmount(TachyonURI, UnmountOptions)} with default options. */ public boolean unmount(TachyonURI tachyonPath) throws IOException, TachyonException { return unmount(tachyonPath, UnmountOptions.defaults()); }
/** Unmounts a Tachyon path. * * @param path the TachyonURI path as the input of the command * @return 0 if command is successful, -1 if an error occurred * @throws IOException if an I/O error occurs */ public int unmount(TachyonURI path) throws IOException { try { if (mTfs.unmount(path)) { System.out.println("Unmounted " + path); return 0; } else { System.out.println("unmount: Failed to unmount" + path); return -1; } } catch (TachyonException e) { throw new IOException(e.getMessage()); } }