Hive Udaf Execute create temporary function times error with MAVEN package

Source: Internet
Author: User


Use MAVEN to package the jar that was written and put it in hive to make the temporary function times wrong.


The error message is as follows:

Hive> Create temporary function MaxValue as "com.leaf.data.Maximum"; Java.lang.SecurityException:Invalid signature File Digest for Manifest main attributes at Sun.security.util.Signa Turefileverifier.processimpl (signaturefileverifier.java:240) at Sun.security.util.SignatureFileVerifier.process ( signaturefileverifier.java:193) at Java.util.jar.JarVerifier.processEntry (jarverifier.java:305) at Java.ut
        Il.jar.JarVerifier.update (jarverifier.java:216) at Java.util.jar.JarFile.initializeVerifier (jarfile.java:341) At Java.util.jar.JarFile.getInputStream (jarfile.java:406) at Sun.misc.urlclasspath$jarloader$2.getinputstream ( urlclasspath.java:752) at Sun.misc.Resource.cachedInputStream (resource.java:77) at Sun.misc.Resource.getBy Tebuffer (resource.java:160) at Java.net.URLClassLoader.defineClass (urlclassloader.java:436) at Java.net.UR LCLASSLOADER.ACCESS$100 (urlclassloader.java:71) at Java.net.URLClassLoader$1.run (urlclassloader.java:361) at Java.net.urlclassloader$1.run (urlclassloader.java:355) at java.se Curity.
        Accesscontroller.doprivileged (Native Method) at Java.net.URLClassLoader.findClass (urlclassloader.java:354) 
        At Java.lang.ClassLoader.loadClass (classloader.java:423) at Java.lang.ClassLoader.loadClass (classloader.java:356) At JAVA.LANG.CLASS.FORNAME0 (Native Method) at Java.lang.Class.forName (class.java:264) at Org.apac He.hadoop.hive.ql.exec.FunctionTask.getUdfClass (functiontask.java:137) at Org.apache.hadoop.hive.ql.exec.FunctionTask.createFunction (functiontask.java:87) at Org.apache.hadoop.hive.ql.exec.FunctionTask.execute (functiontask.java:65) at Org.apache.hadoop.hive.ql.exec.Task
        . ExecuteTask (task.java:151) at Org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential (taskrunner.java:65) At Org.apache.hadoop.hive.ql.Driver.launchTask (driver.java:1414) at org.apache.hAdoop.hive.ql.Driver.execute (driver.java:1192) at org.apache.hadoop.hive.ql.Driver.runInternal (driver.java:1020) At Org.apache.hadoop.hive.ql.Driver.run (driver.java:888) at Org.apache.hadoop.hive.cli.CliDriver.processLo Calcmd (clidriver.java:259) at ORG.APACHE.HADOOP.HIVE.CLI.CLIDRIVER.PROCESSCMD (clidriver.java:216) at ORG.A Pache.hadoop.hive.cli.CliDriver.processLine (clidriver.java:413) at Org.apache.hadoop.hive.cli.CliDriver.executeDriver (clidriver.java:781) at Org.apache.hadoop.hive.cli.CliDriver.run (clidriver.java:675) at Org.apache.hadoop.hive.cli.CliDriver.main ( clidriver.java:614) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at Sun.reflect.NativeMe Thodaccessorimpl.invoke (nativemethodaccessorimpl.java:57) at Sun.reflect.DelegatingMethodAccessorImpl.invoke ( delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:601) at Org.apache.ha DooP.util.runjar.main (runjar.java:212) failed:execution Error, return code-101 from Org.apache.hadoop.hive.ql.exec.FunctionTask

This exception is similar to manifest file related errors.

Workaround:

Locate the Meta-inf directory in the jar package and delete it. SF end of the file can be. The following figure:










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.