1
0

Close FSDataInputStream for meta file open in HoodiePartitionMetadata

This commit is contained in:
Bhavani Sudha Saktheeswaran
2019-02-13 12:54:01 -08:00
committed by vinoth chandar
parent 8dddecf00f
commit 639c287cab
2 changed files with 9 additions and 3 deletions

View File

@@ -206,7 +206,8 @@ public class HoodieInputFormat extends MapredParquetInputFormat implements Confi
* Read the table metadata from a data path. This assumes certain hierarchy of files which should
* be changed once a better way is figured out to pass in the hoodie meta directory
*/
protected static HoodieTableMetaClient getTableMetaClient(FileSystem fs, Path dataPath) {
protected static HoodieTableMetaClient getTableMetaClient(FileSystem fs, Path dataPath)
throws IOException {
int levels = HoodieHiveUtil.DEFAULT_LEVELS_TO_BASEPATH;
if (HoodiePartitionMetadata.hasPartitionMetadata(fs, dataPath)) {
HoodiePartitionMetadata metadata = new HoodiePartitionMetadata(fs, dataPath);