Mysql/hive/redis

ph
Admin (토론 | 기여)님의 2017년 4월 19일 (수) 11:49 판
이동: 둘러보기, 검색

Rename table

ALTER TABLE table_name RENAME TO new_table_name;

[1]

Mysql

Create user

CREATE USER 'newuser'@'localhost' IDENTIFIED BY ‘password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@‘localhost';
FLUSH PRIVILEGES;
DROP USER ‘demo’@‘localhost’;

[2]

HIVE

[https://cwiki.apache.org/confluence/display/Hive/Tutorial#Tutorial-GettingStarted Hive Tutorial

view partitions

show partitions table;

http://stackoverflow.com/q/15616290/766330

특정 partition만을 대상으로 조회하는 특별한 쿼리는 없다. 파티션 정보를 where에 넣으면 hive가 자동으로 알아서 하는 것으로 보임. ref. how to select data from hive with specific partition?