Hadoop Hive Installation Tutorial

Source: Internet
Author: User
Keywords Java function installation tutorial very


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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.