一、报错信息:hive> show databases; FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
解决办法:1.删除mysql中的元数据库(metastore,查看你的元数据名称)
2.执行:schematool -dbType mysql -initSchema -verbose(初始化元数据库)
如果上述方法不能解决解决,重装Hive
二、报错信息:hive> select * from stu; OK 2023-12-30 17:55:23,388 INFO [e1c5e7c8-3d37-4d92-bb45-29d7bc1fc86c main] mapred.FileInputFormat: Total input files to process : 6 Failed with exception java.io.IOException:org.apache.hadoop.hdfs.BlockMissingException: Could not obtain block: BP-109232521-192.168.159.120-1697362807330:blk_1073741847_1023 file=/hive/warehouse/stu/000000_0 Time taken: 1.725 seconds
要授予用户帐户权限,可以用GRANT命令。有撤销用户的权限,可以用REVOKE命令。这里以 MySQl 为例,介绍权限控制实际应用。
GRANT授予权限语法:
GRANT privilege,[privilege],.. ON privilege_level
TO user [IDENTIFIED BY passwo…