问题描述
安装hive完成,运行hive的时候,出现一大堆日志错误,逐个排查
错误一:java.lang.NoSuchMethodError:com.google.common.base.Preconditions.checkArgument
这是因为hive内依赖的guava.jar和hadoop内版本不一致
hive的guava.jar文件在 hive/lib/下
hadoop的guava.jar文件在hadoop/share/hadoop/common/lib/下
让二者的版本保持一致即可,都用二者最高的那个版本
错误二:javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
删除java.secure里面的三种ssh加密方式即可
java.secure在jdk/jre/lib/security/下
错误3:Required table missing : “VERSION
” in Catalog “” Schema “”. DataNucleus requires this table to perform its persistence operations. Either your MetaData is incorrect, or you need to enable
进入hive的安装目录,然后执行
./bin/schematool -dbType mysql -initSchema
即可