ERROR Datastore.Schema: Failed initialising database.
Unable to open a test connection to the given database. JDBC url = jdbc:mysql://localhost:3306/hive?characterEncoding=UTF-8&createDatabaseIfNotExist=true, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: java.sql.SQLException: The server time zone value '???ú±ê×??±?? ’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone
这个是报错内容。
原因为jdbc的连接错误,在hive-site.xml的jdbc连接中没加时区导致报错
原始的jdbc连接:
jdbc:mysql://localhost:3306/hive?characterEncoding=UTF-8&createDatabaseIfNotExist=true
更改后:
jdbc:mysql://localhost:3306/hive?characterEncoding=UTF-8&createDatabaseIfNotExist=true&serverTimezone=GMT%2B8&useSSL=false
08-17
946

11-19
877

06-27
1449

03-06
3435

11-07
2102
