You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Naveen Gangam (JIRA)" <ji...@apache.org> on 2015/11/17 16:28:10 UTC
[jira] [Commented] (HIVE-12418)
HiveHBaseTableInputFormat.getRecordReader() causes Zookeeper connection
leak.
[ https://issues.apache.org/jira/browse/HIVE-12418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15008830#comment-15008830 ]
Naveen Gangam commented on HIVE-12418:
--------------------------------------
The proposed fix closes the HTable resources when RecordReader.close() is called. Also overrides the Object.finalize() that closes these resources too in cases when RecordReader.close() is never called.
> HiveHBaseTableInputFormat.getRecordReader() causes Zookeeper connection leak.
> -----------------------------------------------------------------------------
>
> Key: HIVE-12418
> URL: https://issues.apache.org/jira/browse/HIVE-12418
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Affects Versions: 1.1.0
> Reporter: Naveen Gangam
> Assignee: Naveen Gangam
> Attachments: HIVE-12418.patch
>
>
> @Override
> public RecordReader<ImmutableBytesWritable, ResultWritable> getRecordReader(
> ...
> ...
> setHTable(HiveHBaseInputFormatUtil.getTable(jobConf));
> ...
> The HiveHBaseInputFormatUtil.getTable() creates new ZooKeeper connections(when HTable instance is created) which are never closed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)