[ 
https://issues.apache.org/jira/browse/HBASE-5742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14170459#comment-14170459
 ] 

Ashish Singhi commented on HBASE-5742:
--------------------------------------

Sorry for confusing here..
The exceptions are being thrown from {{HBaseAdmin}} constructor which is called 
from initialize() method. Check the one which is deprecated in master branch.
{code}
 /**
   * Constructor for externally managed Connections.
   * The connection to master will be created when required by admin functions.
   *
   * @param connection The Connection instance to use
   * @throws MasterNotRunningException, ZooKeeperConnectionException are not
   *  thrown anymore but kept into the interface for backward api compatibility
   * @deprecated Do not use this internal ctor.
   */
  @Deprecated
  public HBaseAdmin(Connection connection)
      throws MasterNotRunningException, ZooKeeperConnectionException {
    this((ClusterConnection)connection);
  }
{code}

> LoadIncrementalHFiles throws too generic of an exception
> --------------------------------------------------------
>
>                 Key: HBASE-5742
>                 URL: https://issues.apache.org/jira/browse/HBASE-5742
>             Project: HBase
>          Issue Type: Improvement
>          Components: mapreduce
>            Reporter: David Capwell
>            Assignee: Ashish Singhi
>
> In 0.90 the LoadIncrementalHFiles constructor did not throw an exception, now 
> it throws Exception.  The constructor should ether not throw an exception or 
> throw ZooKeeperConnectionException, and MasterNotRunningException since those 
> come from the HBaseAdmin call.
> https://github.com/apache/hbase/blob/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java#L105



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to