mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
change max length of file status
This commit is contained in:
parent
dd266dea65
commit
e8ef06ca1f
1 changed files with 3 additions and 1 deletions
|
|
@ -217,7 +217,9 @@ public class HDFSFileInterpreter extends FileInterpreter {
|
|||
allFiles.FileStatuses != null &&
|
||||
allFiles.FileStatuses.FileStatus != null)
|
||||
{
|
||||
for (int index = 0; index < cmd.maxLength; index++) {
|
||||
int length = cmd.maxLength < allFiles.FileStatuses.FileStatus.length ? cmd.maxLength :
|
||||
allFiles.FileStatuses.FileStatus.length;
|
||||
for (int index = 0; index < length; index++) {
|
||||
OneFileStatus fs = allFiles.FileStatuses.FileStatus[index];
|
||||
all = all + listOne(path, fs) + '\n';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue