|
|
|
@ -226,10 +226,10 @@ public class HadoopUtils implements Closeable {
|
|
|
|
|
return new byte[0]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
FSDataInputStream fsDataInputStream = fs.open(new Path(hdfsFilePath)); |
|
|
|
|
try (FSDataInputStream fsDataInputStream = fs.open(new Path(hdfsFilePath))) { |
|
|
|
|
return IOUtils.toByteArray(fsDataInputStream); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* cat file on hdfs |
|
|
|
@ -493,7 +493,6 @@ public class HadoopUtils implements Closeable {
|
|
|
|
|
return String.format("%s/udfs", getHdfsTenantDir(tenantCode)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get hdfs file name |
|
|
|
|
* |
|
|
|
@ -545,7 +544,6 @@ public class HadoopUtils implements Closeable {
|
|
|
|
|
return String.format("%s/%s", getHdfsDataBasePath(), tenantCode); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* getAppAddress |
|
|
|
|
* |
|
|
|
|