Environment: Ubuntu14.04 Hadoop3.2.0 MySQL5.7 hive2.3.6
Installation steps of: mounting hive, MySQL and configure
Referring installation: the Ubuntu installation hive, and configured as a meta-database mysql MySQL installation reference: the Ubuntu common installation and operation MySQL
Many questions arise during the installation process:
1.hive version of the problem: Unrecognized Hadoop major version number: 3.xx exception;
Cause: hive1.xx version of the first installation may appear incompatible with Hadoop3.2,
After the search found hive version 1.2.1 support the Hadoop 1.xy, 2.xy, change does not happen again after this problem with a later version of the hive.
2.MySQL jdbc package: use mysql to match with their package
mysql-connector-java_8.0.18 Download mysql-connector-java-5.1.48 Download (right click on Looking for previous GA versions?)
3.service mysql start start the MySQL server: the emergence of start: unknown Task: mysql
Add front sudo sudo service mysql start;
You can start the MySQL service, shut down the operating same sudo service mysql stop;
4.Cannot find hadoop installation: $HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the path:
hive starts or error operation occurs,
Reason: the path is not set path (Ubuntu .bashrc file ~ edit ~ / rear .bashrc / vim still in the xml configuration)
The hive-default.xml.template replication under usr / local / hive / conf path and rename and add hive-default.xml HADOOP_HOME = / usr / local / hadoop inside
5. Ibid position hive-default.xml.template copy and rename hive-default.xml
6. appears when you create a table
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
Performing terminal schematool -dbType mysql -initSchema
These are some of the errors that occur during the installation process hive, are some small problems, little attention will be a problem.