Github user mmiklavc commented on a diff in the pull request:

    https://github.com/apache/metron/pull/1108#discussion_r203121809
  
    --- Diff: 
metron-platform/metron-common/src/main/java/org/apache/metron/common/utils/HDFSUtils.java
 ---
    @@ -29,6 +29,16 @@
     
     public class HDFSUtils {
     
    +  public static byte[] readBytes(String path) throws IOException {
    +    return readBytes(new Path(path));
    +  }
    +
    +  public static byte[] readBytes(Path inPath) throws IOException {
    +    FileSystem fs = FileSystem.get(inPath.toUri(), new Configuration());
    +    FSDataInputStream inputStream = fs.open(inPath);
    --- End diff --
    
    I found 2 such dangling input streams and am supplying a fix for both.


---

Reply via email to