Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다.
문의사항은 gooper@gooper.com로 메일을
보내주세요.
use metadata;
select tbl.owner, tbl.tbl_name, sds.location, db.db_location_uri from DBS db, TBLS tbl, SDS sds
where db.db_id=tbl.db_id and sds.sd_id=tbl.sd_id and tbl.tbl_name like '%tb_test%';
하면 tb_test테이블의 정보를 아래와 같이 표시된다.
owner tbl_name location db_location_uri
gooper tb_test hdfs://nameservice1/user/hive/warehouse/gooper.db/tb_test hdfs://nameservice1/user/hive/warehouse/gooper.db