The following is my hive installation process:
Hive is the most commonly used tool in Hadoop, it can be said to be a required tool.
According to the official Apache documents, recommended to use SVN download compiled, document address: Https://cwiki.apache.org/confluence/display/Hive/AdminManual+Installation
but build, because of dependencies, the whole time, a lot of packages have not succeeded.
Recommended use of tar.gz package, direct installation, document address: https://cwiki.apache.org/confluence/display/Hive/GettingStarted# Gettingstarted-installationandconfiguration
Very simple, direct success!
First run hive times wrong:
Exception in thread ' main ' Java.lang.NoSuchFieldError:ALLOW_UNQUOTED_CONTROL_CHARS at Org.apache.hadoop.hive.ql.udf.generic.genericudtfjsontuple.<clinit> (genericudtfjsontuple.java:59) at Sun.reflect.820.html ">nativeconstructoraccessorimpl.newinstance0 (Native method) at Sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:39) at Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:27) at Java.lang.reflect.Constructor.newInstance (constructor.java:513) at Org.apache.hadoop.util.ReflectionUtils.newInstance (reflectionutils.java:113) at Org.apache.hadoop.hive.ql.exec.FunctionRegistry.registerGenericUDTF (functionregistry.java:545) at Org.apache.hadoop.hive.ql.exec.FunctionRegistry.registerGenericUDTF (functionregistry.java:539) at Org.apache.hadoop.hive.ql.exec.functionregistry.<clinit> (functionregistry.java:472) at Org.apache.hadoop.hive.ql.session.sessionstate.<init> (sessionstate.java:202) AT org.apache.hadoop.hive.cli.clisessionstate.<init> (clisessionstate.java:86) at Org.apache.hadoop.hive.cli.CliDriver.run (clidriver.java:635) at Org.apache.hadoop.hive.cli.CliDriver.main ( clidriver.java:613) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:39) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (DELEGATINGMETHODACCESSORIMPL.JAVA:25) at Java.lang.reflect.Method.invoke (method.java:597) at Org.apache.hadoop.util.RunJar.main (runjar.java:156)
The
Allow_unquoted_control_chars is a keyword
reason:
The Jackson jar package in hive is inconsistent with Hadoop, and Hadoop is used in Old 1.0.1, Hive is 1.8.8.
Replace the jar in Hadoop with the same as Woo Hive,
can find a jar package.