HBASE-19848 Zookeeper thread leaks in hbase-spark bulkLoad method (Key Hutu)

This commit is contained in:
tedyu 2018-02-02 05:45:13 -08:00
parent 2f4d0b94bc
commit 8143d5afa4
1 changed files with 2 additions and 0 deletions

View File

@ -706,6 +706,7 @@ class HBaseContext(@transient sc: SparkContext,
compactionExclude) compactionExclude)
rollOverRequested = false rollOverRequested = false
}) })
if(null != conn) conn.close()
} }
/** /**
@ -868,6 +869,7 @@ class HBaseContext(@transient sc: SparkContext,
compactionExclude) compactionExclude)
rollOverRequested = false rollOverRequested = false
}) })
if(null != conn) conn.close()
} }
/** /**