Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 541F5200D0B for ; Wed, 27 Sep 2017 23:12:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 526E21609EB; Wed, 27 Sep 2017 21:12:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7B0811609C1 for ; Wed, 27 Sep 2017 23:12:05 +0200 (CEST) Received: (qmail 16862 invoked by uid 500); 27 Sep 2017 21:12:04 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 16853 invoked by uid 99); 27 Sep 2017 21:12:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2017 21:12:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4A4971A07A0 for ; Wed, 27 Sep 2017 21:12:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id VO-gwtpnFU0y for ; Wed, 27 Sep 2017 21:12:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A15DE5F5F7 for ; Wed, 27 Sep 2017 21:12:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 16301E0373 for ; Wed, 27 Sep 2017 21:12:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AF3E7242AB for ; Wed, 27 Sep 2017 21:12:00 +0000 (UTC) Date: Wed, 27 Sep 2017 21:12:00 +0000 (UTC) From: "Aihua Xu (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HIVE-17624) MapredLocakTask running in separate JVM could throw ClassNotFoundException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 27 Sep 2017 21:12:06 -0000 [ https://issues.apache.org/jira/browse/HIVE-17624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aihua Xu reassigned HIVE-17624: ------------------------------- > MapredLocakTask running in separate JVM could throw ClassNotFoundException > --------------------------------------------------------------------------- > > Key: HIVE-17624 > URL: https://issues.apache.org/jira/browse/HIVE-17624 > Project: Hive > Issue Type: Bug > Components: Query Planning > Affects Versions: 2.1.1 > Reporter: Aihua Xu > Assignee: Aihua Xu > > {noformat} > set hive.auto.convert.join=true; > set hive.auto.convert.join.use.nonstaged=false; > add jar hive-hcatalog-core.jar; > drop table if exists t1; > CREATE TABLE t1 (a string, b string) > ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'; > LOAD DATA LOCAL INPATH "data/files/sample.json" INTO TABLE t1; > select * from t1 l join t1 r on l.a=r.a; > {noformat} > The join will use a MapJoin which uses MapredLocalTask in a separate JVM to load the table into a Hashmap. But hive doesn't pass added jar to the classpath in such JVM so the following exception is thrown. > {noformat} > org.apache.hadoop.hive.ql.metadata.HiveException: Failed with exception java.lang.ClassNotFoundException: org.apache.hive.hcatalog.data.JsonSerDejava.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hive.hcatalog.data.JsonSerDe > at org.apache.hadoop.hive.ql.plan.TableDesc.getDeserializerClass(TableDesc.java:72) > at org.apache.hadoop.hive.ql.plan.TableDesc.getDeserializer(TableDesc.java:92) > at org.apache.hadoop.hive.ql.exec.FetchOperator.setupOutputObjectInspector(FetchOperator.java:564) > at org.apache.hadoop.hive.ql.exec.FetchOperator.initialize(FetchOperator.java:172) > at org.apache.hadoop.hive.ql.exec.FetchOperator.(FetchOperator.java:140) > at org.apache.hadoop.hive.ql.exec.FetchOperator.(FetchOperator.java:127) > at org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask.initializeOperators(MapredLocalTask.java:462) > at org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask.startForward(MapredLocalTask.java:390) > at org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask.executeInProcess(MapredLocalTask.java:370) > at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.main(ExecDriver.java:756) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.lang.ClassNotFoundException: org.apache.hive.hcatalog.data.JsonSerDe > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:270) > at org.apache.hadoop.hive.ql.plan.TableDesc.getDeserializerClass(TableDesc.java:69) > ... 15 more > at org.apache.hadoop.hive.ql.exec.FetchOperator.setupOutputObjectInspector(FetchOperator.java:586) > at org.apache.hadoop.hive.ql.exec.FetchOperator.initialize(FetchOperator.java:172) > at org.apache.hadoop.hive.ql.exec.FetchOperator.(FetchOperator.java:140) > at org.apache.hadoop.hive.ql.exec.FetchOperator.(FetchOperator.java:127) > at org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask.initializeOperators(MapredLocalTask.java:462) > at org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask.startForward(MapredLocalTask.java:390) > at org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask.executeInProcess(MapredLocalTask.java:370) > at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.main(ExecDriver.java:756) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)