今天装完hive准备建个表试下,结果报错
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)
网上google了一下,发现有的说要改hive.metastore.uris(execuse me??)
有的说要改mysql的编码(wtf??)
感觉这两个跟建表并没有直接联系,去stackoverflow发现也没有靠谱的回答
差点把版本给换成之前的版本了
后来先把hive的日志调出来,看了一下,原来详细的日志说的很清楚
Required table missing : "`SERDE_PARAMS`" in Catalog "" Schema "". DataNucleus requires this table to perform its persistence operations. Either your MetaData is incorrect, or you need to enable "datanucleus.schema.autoCreateTables"
mysql里的表少了,哎,没办法,把之前的表全干掉之后
又去官网看了下Hive Schema Tool的用法
又把元数据初始化了一遍,终于ok了
./schematool -dbType mysql -initSchema
看了下没人记录这个详细的解决方案,那就我自己来记下吧,最后吐槽一下为什么初始化的表会少呢?