티스토리 뷰

728x90
1. create database
2. create table
3. hadoop distcp /user/hive/warehouse/<old_database>.db /user/hive/warehouse/<new_database>.db

https://hadoop.apache.org/docs/current/hadoop-distcp/DistCp.html

 

Apache Hadoop Distributed Copy – DistCp Guide

https://stackoverrun.com/ko/q/7310286

 

hive - 하나의 데이터베이스에서 다른 데이터베이스로 모든 하이브 테이블을 복사하는 방법

80 개의 테이블을 포함하는 하이브 테이블에 기본 db가 있습니다. 데이터베이스를 하나 더 만들었으며 모든 테이블을 기본 DB에서 새 데이터베이스로 복사하려고합니다. 개별 테이블을 만들지 않

stackoverrun.com

 

 

728x90

'공부' 카테고리의 다른 글

[Python] for by date  (0) 2021.01.09
[Sh] for date `start ~ end`  (0) 2021.01.09
[HDFS] remove trash for empty  (0) 2021.01.09
[Sh] merge files  (0) 2021.01.09
[Python] pymysql fetchall() results as dictionary  (0) 2021.01.09
댓글