[Root@master ~]# Hive
Missing Hive execution Jar:/root/hive/hive/lib/hive-exec-*.jar
Display missing hive execution Jar when running hive:/usr/hive/hive-0.11.0/bin/lib/hive-exec-*.jar
Carefully analyze this directory/bin/lib, the two directories in the Hive installation folder are parallel, and the system can find such a link, indicating that hive in the CentOS system configuration file path is wrong, open/etc/profile will find hive configuration path
Before modification:
#HIVE
Export Hive_home= $PWD/hive
Export path= $PATH: $HIVE _home/bin
It is obvious that there is a problem with the path configuration, so the configuration system looks for the jar package it needs in the bin directory in the Hive installation folder, and the bin and Lib folders are tied together, so we need to configure the hive path as a folder installation path in the CentOS system configuration file, that is
After modification:
#HIVE
Export Hive_home= $PWD/hive
Export path= $JAVA _home/bin: $PATH: $HIVE _home/bin
Display result: [Root@master ~]# Hive
16/04/08 07:24:12 INFO Configuration.deprecation:mapred.input.dir.recursive is deprecated. Instead, use Mapreduce.input.fileinputformat.input.dir.recursive
16/04/08 07:24:12 INFO Configuration.deprecation:mapred.max.split.size is deprecated. Instead, use Mapreduce.input.fileinputformat.split.maxsize
16/04/08 07:24:12 INFO Configuration.deprecation:mapred.min.split.size is deprecated. Instead, use Mapreduce.input.fileinputformat.split.minsize
16/04/08 07:24:12 INFO Configuration.deprecation:mapred.min.split.size.per.rack is deprecated. Instead, use Mapreduce.input.fileinputformat.split.minsize.per.rack
16/04/08 07:24:12 INFO Configuration.deprecation:mapred.min.split.size.per.node is deprecated. Instead, use Mapreduce.input.fileinputformat.split.minsize.per.node
16/04/08 07:24:12 INFO Configuration.deprecation:mapred.reduce.tasks is deprecated. Instead, use Mapreduce.job.reduces
16/04/08 07:24:12 INFO Configuration.deprecation:mapred.reduce.tasks.speculative.execution is deprecated. Instead, use Mapreduce.reduce.speculative
16/04/08 07:24:12 WARN Conf. HiveConf:DEPRECATED:Configuration Property Hive.metastore.local no longer have any effect. Make sure to provide a valid value for Hive.metastore.uris if you is connecting to a remote Metastore.
Logging initialized using configuration in jar:file:/root/hive/lib/hive-common-0.12.0-cdh5.0.0.jar!/ Hive-log4j.properties
Slf4j:class path contains multiple slf4j bindings.
Slf4j:found Binding in [jar:file:/root/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/ Staticloggerbinder.class]
Slf4j:found binding in [Jar:file:/root/hive/lib/slf4j-log4j12-1.7.5.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]
Hive>
Run successfully.