Inicio de la colmena - [ERROR] Falló la inicialización del terminal; volver a no ser compatible


He descargado hive y modificado HADOOP_HOME a

HADOOP_HOME=${bin}/../../usr/local/hadoop

Mi ruta actual de hadoop es

/usr/local/hadoop

In .bashrc he añadido las siguientes variables env

export HIVE_HOME=/usr/lib/hive/apache-hive-1.1.0-bin
export PATH=$PATH:$HIVE_HOME/bin
export CLASSPATH=$CLASSPATH:/usr/local/Hadoop/lib/*:.
export CLASSPATH=$CLASSPATH:/usr/local/hive/lib/*:.

Luego intenté iniciar hive usando bin/hive. Tengo el siguiente error

Logging initialized using configuration in jar:file:/usr/lib/hive/apache-hive-1.1.0-bin/lib/hive-common-1.1.0.jar!/hive-log4j.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/lib/hive/apache-hive-1.1.0-bin/lib/hive-jdbc-1.1.0-standalone.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.slf4j.impl.Log4jLoggerFactory]
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
    at jline.TerminalFactory.create(TerminalFactory.java:101)
    at jline.TerminalFactory.get(TerminalFactory.java:158)
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:229)
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)
    at org.apache.hadoop.hive.cli.CliDriver.getConsoleReader(CliDriver.java:773)
    at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:715)
    at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:230)
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)
    at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)
    at org.apache.hadoop.hive.cli.CliDriver.getConsoleReader(CliDriver.java:773)
    at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:715)
    at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Author: KARTHIKEYAN.A, 2015-03-12

11 answers

Tuve el mismo problema y lo conseguí trabajando desde este enlace:

Https://cwiki.apache.org/confluence/display/Hive/Hive+on + Spark%3A + Getting + Started

  • Hive se ha actualizado a Jline2 pero jline 0.9 x existe en la lib de Hadoop.

Así que debes seguir estos pasos:

  1. Elimina jline del directorio de Hadoop lib (solo se extrae transitivamente de ZooKeeper).
  2. export HADOOP_USER_CLASSPATH_FIRST = true
 63
Author: Rodrigo Salvo,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-03-13 19:03:17

Intente después de eliminar la línea j-0.9.94.archivo jar bajo la ruta HAD HADOOP_HOME/share/hadoop/yarn/lib / jline-0.9.94.jar

Aquí está el enlace a jira ticket https://issues.apache.org/jira/browse/HIVE-8609

 8
Author: uday sharma,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-03-22 05:44:28

Intenta eliminar uno de estos archivos

SLF4J: Se encuentra el enlace en [jar:archivo:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.¡tarro!/ org/slf4j/impl / StaticLoggerBinder.class ]

SLF4J: Encontrado enlace en [jar:archivo:/usr/lib/hive/apache-hive-1.1.0-bin/lib/hive-jdbc-1.1.0-standalone.¡tarro!/ org/slf4j/impl / StaticLoggerBinder.class ]

Entonces creo que solo elegirá unirse a uno. así que el enlace múltiple ya no estará disponible

 4
Author: Mund,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-03-12 06:50:21

Acabo de establecer el

HADOOP_USER_CLASSPATH_FIRST=true

Y funciona para mí para este tema.

 4
Author: krish727,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-10-12 19:34:05

Tuve el mismo problema con cloudera CDH5.4 . Eliminación de jline-0.9.94.jar de hilado/libs carpeta funcionó para mí.

 1
Author: raja,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-05-05 08:48:12

Con Hadoop versión 2.4.1 y Hive 1.2.0. Yo tenía el mismo problema. Y después de establecer HADOOP_USER_CLASSPATH_FIRST = true in.bashrc

Funcionó como un encanto!!!

 1
Author: Mohammed Asad,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-11-28 12:25:34

Haz esto locate jline.

El archivo, jline-0.9.94.jar, se encuentra en 3 ubicaciones, eliminarlo de todas las 3 ubicaciones y hacer la exportación necesaria:

$ export HADOOP_USER_CLASSPATH_FIRST=true
 1
Author: Divas,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-03-18 17:45:51

Con la nueva versión de Hive (1.2.1), solo tuve que reemplazar jline-2.12.frasco con jline-2.13.jar en la carpeta installation / lib.

 0
Author: mountrix,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-09-10 16:48:54

Compruebe este enlace podría ayudarle Frente a un problema mientras se ejecuta hive desde CLI

 0
Author: Qasim,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-10-01 09:22:21

Debes iniciar el libario de hadoop:

$ vi ~/.bashrc
$ export HADOOP_USER_CLASSPATH_FIRST=true
$ source .bashrc
$ hive
 0
Author: KARTHIKEYAN.A,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-10-16 11:23:41

Rebautizé

addJava "-Djline.terminal=jline.UnixTerminal"

A

addJava "-Djline.terminal=jline2.UnixTerminal"

En el archivo" activador "

 0
Author: raoulsson,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-12-20 08:19:05