Hadoop配置命令

HDFS

格式化NameNode

hadoop namenode -format

启动/关闭

start-all.sh
stop-all.sh

Hive

初始化元数据

schematool -initSchema -dbType mysql

MySQL配置

#MySQL5.7对应驱动采用mysql-connector-java-5.1.40-bin.jar
jdbc:mysql://IP:3306/hive?createDatabaseIfNotExist=true&useSSL=false&characterEncoding=utf8

启动

hive