HIVE: невозможно создать экземпляр org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient - PullRequest
0 голосов
/ 11 мая 2019

Когда я выполняю hive cli в Ubuntu, я получаю следующее сообщение об ошибке:

hadoopgudi@hadoopgudi-VirtualBox:~$ hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop-env/hive- 
3.1.0/lib/log4j-slf4j-impl- 
2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop-env/hadoop- 
2.8.3/share/hadoop/common/lib/slf4j-log4j12- 
1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
explanation.
SLF4J: Actual binding is of type 
[org.apache.logging.slf4j.Log4jLoggerFactory]
Hive Session ID = 0610a30d-9c12-455e-8a5b-e63a40979a6e
Logging initialized using configuration in jar:file:/usr/local/hadoop-env/ 
hive-3.1.0/lib/hive-common-3.1.0.jar!/hive-log4j2.properties Async: true
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver 
class is `com.mysql.cj.jdbc.Driver'. The driver is automatically 
registered via the SPI and manual loading of the driver class is generally 
unnecessary.
Hive-on-MR is deprecated in Hive 2 and may not be available in the future 
versions. Consider using a different execution engine (i.e. spark, tez) or 
using Hive 1.X releases.
hive> use default;
**FAILED: HiveException java.lang.RuntimeException: Unable to instantiate 
org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient**

Итак, я перепробовал все форумы сообщества на предмет этой ошибки.Каждый раз, когда упоминалось, что вам нужно удалить файл metastore_db, который создается при запуске команды куста на cli.и затем попробуйте следующую команду:

schematool -dbType mysql -initSchema

Но я не нашел файл metastore_db или какой-либо другой в таком формате.Итак, я подумал о том, чтобы снова запустить команду schematool, чтобы проверить, может ли она повторно инициировать схему metastore в базе данных mysql.Но я снова столкнулся с ошибкой процесса, как показано ниже:

hadoopgudi@hadoopgudi-VirtualBox:/$ schematool -dbType mysql -initSchema
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop-env/hive- 
3.1.0/lib/log4j-slf4j-impl- 
2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop-env/hadoop- 
2.8.3/share/hadoop/common/lib/slf4j-log4j12- 
1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
explanation.
SLF4J: Actual binding is of type 
[org.apache.logging.slf4j.Log4jLoggerFactory]
Metastore connection URL:    jdbc:mysql://localhost/metastore? 
createDatabaseIfNotExist=true
Metastore Connection Driver :    com.mysql.jdbc.Driver
Metastore connection User:   hiveuser
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver 
class is `com.mysql.cj.jdbc.Driver'. The driver is automatically 
registered via the SPI and manual loading of the driver class is generally 
unnecessary.
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema 
version.
Underlying cause: java.sql.SQLException : The server time zone value 
'CEST' 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 value if you want 
to utilize time zone support.
SQL Error code: 0
Use --verbose for detailed stacktrace.
*** schemaTool failed ***

Не могли бы вы, ребята, помочь мне в решении этой проблемы.Я хочу попытаться перезапустить процессы Metastore, но не удалось, так как я не могу найти и дать команду для реализации того же ??

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...