테이블명 변경
alter table tmp.oldname rename to tmp.newname
경로 변경
터미널에서 파일 복사
hadoop distcp hdfs://old_dir/* hdfs://new_dir
쿼리
alter table tmp.newname set location 'hdfs://new_dir'
'SQL > hive' 카테고리의 다른 글
[hive] partition add / delete (0) | 2020.06.04 |
---|---|
[hive] table, column add comment / add column / change column order / column rename (0) | 2020.06.03 |
[hive] partition column rename (0) | 2020.06.03 |