shematool -initschema -dbtype mysql error org.apache.hadoop.hive.metastore.hivemetaexception:Failed to get schema version

命令:schematool -initSchema -dbType mysql

Fix the issue:

edit /etc/mysql/my.cnf 
change bind-address            = 127.0.0.1   
 to  bind-address            = 0.0.0.0 

Restart mysqld (/etc/init.d/mysql restart).

 

posted @ 2017-11-06 19:16  Jesse_Li  阅读(775)  评论(0编辑  收藏  举报