msck repair table 명령어란?
- MSCK는 MetaStore Check의 약자입니다.
- 즉, 말그대로 msck repair table 명령어는 메타스토어를 체크하여 hive table이 바라보는 location에는 존재하지만, 메타스토어에는 없는 파티션을 수동 추가하는 명령어입니다.
msck repair table sample_table;
hive 2.0에서의 test
- 확인 결과, interal/external table 모두 동작합니다.
- 메타스토어에만 존재하고 location에는 존재하지 않는 파티션의 경우 삭제되지 않습니다. (당연히 데이터는 조회되지 않습니다.)
'Data Engineering' 카테고리의 다른 글
[airflow] 과거 기간 데이터 채우기(catchup, backfill) (0) | 2023.08.07 |
---|---|
[airflow] retry 설정 (0) | 2023.08.04 |
[Hive] Internal Table vs External Table (0) | 2023.07.25 |