hiv e
-
hive sql -1개발기록/Hadoop 2017. 11. 20. 23:15
hive sql show databases; create databases 데이터베이스명comment database_commentlocation hdfs_pathwith dbproperties(property_name=property_value);use 생성한데이터베이스명;-hdfs의 저장경로를 설정하지 않을경우, 기본 하둡 파일 시스템 디렉토리로 들어간다 예를들면 /user/hive/warehouse하이브의 웨어항우스 디렉토리의 서브에 저장된다-낮은 버전의 hive일 경우에 alter로 location을 수정할 수 없으니 생성할때 locaiton path를 잘 잡아준다. create table records ( id int, name String)row format delimitedfields ter..