org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version. Underlying cause: java.sql.SQLException : Failed to create database metastore_db , see the next exception for details
SQL Error code: 40000
在网上找了一下最后发现是当前hive文件夹权限不够,无法创建metastore_db.
解决:
- sudo chmod 777 hive;
- 执行bin/schematool -dbType derby -initSchema
- 成功