[Improvement] broker load with hdfs support wildcard (#8718)
broker load with hdfs support wildcard
This commit is contained in:
@ -187,7 +187,7 @@ public class BrokerUtil {
|
||||
}
|
||||
try {
|
||||
FileSystem fs = FileSystem.get(new URI(hdfsFsName), conf, user);
|
||||
FileStatus[] statusList = fs.listStatus(new Path(path));
|
||||
FileStatus[] statusList = fs.globStatus(new Path(path));
|
||||
for (FileStatus status : statusList) {
|
||||
if (status.isFile()) {
|
||||
fileStatuses.add(new TBrokerFileStatus(status.getPath().toUri().getPath(),
|
||||
|
||||
Reference in New Issue
Block a user