[ https://issues.apache.org/jira/browse/HBASE-13322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14378085#comment-14378085 ]
Solomon Duskis commented on HBASE-13322: ---------------------------------------- Perhaps this: {code} try (Connection conn = ConnectionFactory.createConnection(conf)) { try (Admin admin = conn.getAdmin()) { } } {code} can be replaced with: {code} try (Connection conn = ConnectionFactory.createConnection(conf); Admin admin = conn.getAdmin()) { } {code} > Replace explicit HBaseAdmin creation with connection#getAdmin() > --------------------------------------------------------------- > > Key: HBASE-13322 > URL: https://issues.apache.org/jira/browse/HBASE-13322 > Project: HBase > Issue Type: Improvement > Affects Versions: 2.0.0 > Reporter: Andrey Stepachev > Assignee: Andrey Stepachev > Priority: Minor > Attachments: HBASE-13322.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)