Github user cmccabe commented on the pull request:

    https://github.com/apache/spark/pull/1486#issuecomment-50209723
  
    I took a look at rewriting this to avoid the reflection, and use 
conditional compilation instead.  Unfortunately, I think it just increased the 
complexity.  Since some of the APIs we need here are only in hadoop2.5 and 
higher, we'd have to have a Maven profile like "hadoop2.5_and_higher", which 
just seems awkward given that we already have Phadoop2.4, Phadoop2.3, etc.  So 
I think reflection might be a necessary evil for right now.


---
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.
---

Reply via email to