8
Estoy ejecutando un trabajo hadoop, tengo el objeto FileSystem y el objeto Path y quiero saber cuál es el tamaño del archivo (Path).Cómo obtener el tamaño de archivo
alguna idea?
Estoy ejecutando un trabajo hadoop, tengo el objeto FileSystem y el objeto Path y quiero saber cuál es el tamaño del archivo (Path).Cómo obtener el tamaño de archivo
alguna idea?
long length = FileSystem#getFileStatus(PATH)#getLen();
Here is a link to the relevant documentation of Hadoop 2.2.0
No está seguro cuando se cambió, pero es ahora 'getFileStatus' en lugar de' getStatus'. –