def getSizeByPath(path: String): Long = { val p = new Path(path) val fs = p.getFileSystem(new Configuration()) if (fs.exists(p)) fs.getContentSummary(p).getLength else 0 }
def getSizeByPath(path: String): Long = { val p = new Path(path) val fs = p.getFileSystem(new Configuration()) if (fs.exists(p)) fs.getContentSummary(p).getLength else 0 }
def getSizeByPath(path: String): Long = { val p = new Path(path) val fs = p.getFileSystem(new Configuration()) if (fs.exists(p)) fs.getContentSummary(p).getLength else 0 }