Why add Spark? We run Spark in prod and have to actively patch the code based because there are so many ways to make it crash and burn. LDAP is a solved problem, why add Spark and instability to the mix?
(We run Spark in production and don't have the issues you are seeing at all)