schematool -dbType mysql -initSchema
mysql可能出现1045错误
在mysql中执行如下命令
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'han12345' WITH GRANT OPTION;
FLUSH PRIVILEGES;
参考
https://blog.csdn.net/u012580143/article/details/84258556
8)启动hive 保证hadoop启动
hive
9)测试
show databases;
create database test;
use test;
create table test01(id int,name string);
insert into table test01 values(1,'zs');
select * from test01;