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

    https://github.com/apache/flink/pull/2330#discussion_r79468879
  
    --- Diff: 
flink-batch-connectors/flink-hbase/src/main/java/org/apache/flink/addons/hbase/TableInputFormat.java
 ---
    @@ -67,15 +67,24 @@
        protected abstract T mapResultToTuple(Result r);
     
        /**
    -    * creates a {@link Scan} object and a {@link HTable} connection
    -    *
    -    * @param parameters
    +    * Creates a {@link Scan} object and opens the {@link HTable} 
connection.
    +    * These are opened here because they are needed in the 
createInputSplits
    +    * which is called before the openInputFormat method.
    +    * So the connection is opened in {@link #configure(Configuration)} and 
closed in {@link #closeInputFormat()}.
    +    * @param parameters The configuration that is to be used
         * @see Configuration
         */
        @Override
        public void configure(Configuration parameters) {
    -           this.table = createTable();
    -           this.scan = getScanner();
    +           table = createTable();
    +           scan = getScanner();
    +   }
    +
    +   /**
    +    * Do nothing.
    +    */
    +   @Override
    +   public void openInputFormat() throws IOException {
    --- End diff --
    
    No need to override this method.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to