Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다.
문의사항은 gooper@gooper.com로 메일을
보내주세요.
Sentry에서Role을 만들어 테이블 혹은 DB와 매핑하면 여려 사용자에게 roile이 부여된다.
이때 어떤 테이블이 어떤 role에 매핑 되어 있는지를 찾아보기 위해서 다음과 같이 쿼리를 사용할 수 있다.
---table명 혹은 db 명으로 role명칭 찾기
select c.*, a.*, b.* from sentry.sentry_db_privilege a, sentry,sentry_role_db_privilege_map b, sentry.sentry_role c
where a.table_name like '%aaa_table_name%'
and a.db_privilige_id=b.db_privilege_id
and b.role_id=c.role_id
---role에 매핑된 테이블 목록 찾기
select c.*, a.*, b.* from sentry.sentry_db_privilege a, sentry,sentry_role_db_privilege_map b, sentry.sentry_role c
where c.role_name like '%aaa_role_name%'
and a.db_privilige_id=b.db_privilege_id
and b.role_id=c.role_id
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
400 | insert hbase by hive ... error occured after 5 hours..HMaster가 뜨지 않는 장애에 대한 복구 방법 | 총관리자 | 2014.04.29 | 7129 |
399 | oozie가 말하는 start시간은..서버에서 확인되는 시간이 아닙니다. | 총관리자 | 2014.05.14 | 699 |
398 | sqoop export/import등을 할때 driver를 못찾는 오류가 발생하면... | 총관리자 | 2014.05.15 | 867 |
397 | sqoop에서 oracle관련 작업할때 테이블명, 사용자명, DB명은 모두 대문자로 사용할것 | 총관리자 | 2014.05.15 | 1528 |
396 | dual table만들기 | 총관리자 | 2014.05.16 | 825 |
395 | 특정파일이 생성되어야 action이 실행되는 oozie job만들기(coordinator.xml) | 총관리자 | 2014.05.20 | 984 |
394 | source의 type을 spooldir로 하는 경우 해당 경로에 파일이 들어오면 파일단위로 전송함 | 총관리자 | 2014.05.20 | 687 |
393 | hive에서 insert overwrite directory.. 로 하면 default column구분자는 'SOH'혹은 't'가 됨 | 총관리자 | 2014.05.20 | 999 |
392 | import 혹은 export할때 hive파일의 default 구분자는 --input-fields-terminated-by " |