Github user tdas commented on the pull request:
https://github.com/apache/spark/pull/1751#issuecomment-51282121
I dont think that is the problem. The real problem is how SBT and Maven
resolves multiple versions of the same library, which in this case, is
Zookeeper. Observing and comparing the dependency trees from Maven and SBT
showed this. Spark depends on ZK 3.4.5 whereas Apache Kafka transitively
depends on upon ZK 3.3.4. SBT decides to evict 3.3.4 and use the higher version
3.4.5. But Maven decides to stick to the closest (in the tree) dependent
version of 3.3.4. And 3.3.4 does not have
[NIOServerCnxnFactory](http://grepcode.com/search?query=NIOServerCnxnFactory&n=).
The solution is probably to exclude zookeeper from the apache-kafka
dependency in streaming-kafka module so that it just inherits zookeeper from
Spark core.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]