compile passed with hadoop-cdh-3u4

Summary:
1.match hadoop-security API
2.add dev-support
test passed with hadoop-cdh3u4