1.
-bash: schematool: command not found
进入hive安装目录下的bin/,运行命令:./schematool -dbType mysql -initSchema
2.
Missing Hive Execution Jar: /opt/model/hive-3.1.2/lib/hive-exec-*.jar
检查lib/下面是否有hive-exec-3.1.2.jar文件
仔细检查环境变量,查看是否有错误!!!修改完source生效。
初始化元数据库成功: