Skip to content

km1031kim/RangerAuthenticationProviderImpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image image

AD/Kerberos 연동이 어려운 환경을 위해, Hive에 적용 가능한 커스텀 인증 프로바이더 샘플을 구현했습니다.
현재 Ambari에서 Apache Ranger로 유저 생성 및 유저별 권한 관리가 가능하기에, 인증 또한 Ranger에 위임하였습니다.
내부적으로 RestTemplate을 통해 Apache Ranger Rest API를 호출합니다.


image

Ranger Admin 웹을 통한 테스트 유저 생성


beeline 인증 실패

[root@edge01 ~]# beeline -n customUser -u jdbc:hive2://`hostname -f`:10000 -p worngpassword
image

beeline 인증 성공

[root@edge01 ~]# beeline -n customUser -u jdbc:hive2://`hostname -f`:10000 -p rangeradmin123
image

이후 권한 적용.


TODO : RestTemplate으로 인한 Spring 의존성 제거 필요.

About

beeline 접속 시 Ranger API를 통해 인증받도록 구현한 커스텀 클래스

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages