디비 테스트는 아래 링크를 보자

2-데이터베이스

Untitled

**# 테스트용
CREATE DATABASE IF NOT EXISTS sungho
COMMENT "test database"
LOCATION "/user/20240704test/sungho/"
WITH DBPROPERTIES (
  'key1' = 'value1',
  'key2' = 'value2'
);

DESC DATABASE EXTENDED sungho;**

실행하기

**~~#로그 설정 안한버전
$HIVE_HOME/bin/hive --service metastore &
$HIVE_HOME/bin/hive --service hiveserver2 &~~

#로그 셋팅 설정추가한 최신 버전
# hive metastore 기동
nohup hive --service metastore >> /home/hive/hive-3.1.3/logs/hive-metastore.log 2>&1 &

# hiveserver2 기동
nohup hive --service hiveserver2 >> /home/hive/hive-3.1.3/logs/hiveserver2.log 2>&1 &

netstat -tlnp 해서 확인
9083 메타스토어
10000 하이브
10002 하이브서버2**

vi /etc/my.cnf


**pwd : vi /etc/my.cnf

#
# This group is read both by the client and the server
# use it for options that affect everything
#
[client-server]

#
# include *.cnf from the config directory
#
!includedir /etc/my.cnf.d

[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character_set_server = utf8
sql_mode=NO_BACKSLASH_ESCAPES
[client]
default-character-set=utf8
[mysqldump]
default-character-set = utf8
[mysql]
default-character-set = utf8**

하이브 파티셔닝

[Hive] Partition이란?(add 추가, drop 삭제, show partitions 조회, partitions)

마리아디비 선행설치!

MariaDB 10.11.8 (v 1.0)


아파치 공식 Downloads