Details
Description
In the current implementation of HiveThriftServer2, Hive Driver instances are cached and reused among queries. However, Driver is not thread-safe, and may cause racing conditions. In SPARK-4908, we synchronized HiveContext.runHive to avoid this issue, but this affects concurrency negatively, because no two native commands can be executed concurrently. This is pretty bad for heavy commands like ANALYZE.
Please refer this comment in SPARK-4908 for details.
Attachments
Issue Links
- duplicates
-
SPARK-6482 Remove synchronization of Hive Native commands
- Closed