Ich habe versucht, Hive auf einem Raspberry Pi 2 zu installieren. Ich habe Hive von Zip komprimierten Hive-Paket installiert und $ HADOOP_HOME und $ HIVE_HOME manuell unter huser Benutzergruppe ich erstellt. Wenn hive läuft, habe ich die folgende Fehlermeldung: hiveHive Installationsprobleme: Hive Metastore-Datenbank ist nicht initialisiert
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Exception in thread "main" java.lang.RuntimeException: Hive metastore database is not initialized. Please use schematool (e.g. ./schematool -initSchema -dbType ...) to create the schema. If needed, don't forget to include the option to auto-create the underlying database in your JDBC connection string (e.g. ?createDatabaseIfNotExist=true for mysql)
So lief ich den Befehl in der obigen Fehlermeldung vorgeschlagen: schematool -dbType Derby -initSchema ich die Fehlermeldung bekam:
Error: FUNCTION 'NUCLEUS_ASCII' already exists. (state=X0Y68,code=30000) org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !! * schemaTool failed *
Es scheint, dass es keine hilfreichen Informationen gibt, wenn ich versuche, diesen Fehler online zu googeln. Jede Hilfe oder irgendeine Erklärung, wie Hive mit Derby arbeitet, wäre willkommen!
Haben Sie dieses Problem behoben? – Newtopian