From issues-return-2552-archive-asf-public=cust-asf.ponee.io@hivemall.incubator.apache.org Tue Sep 18 07:38:08 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AD09A180677 for ; Tue, 18 Sep 2018 07:38:06 +0200 (CEST) Received: (qmail 1815 invoked by uid 500); 18 Sep 2018 05:38:05 -0000 Mailing-List: contact issues-help@hivemall.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hivemall.incubator.apache.org Delivered-To: mailing list issues@hivemall.incubator.apache.org Received: (qmail 1806 invoked by uid 99); 18 Sep 2018 05:38:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2018 05:38:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 233F718304D for ; Tue, 18 Sep 2018 05:38:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 1qDs8nwMbfqn for ; Tue, 18 Sep 2018 05:38:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 090795F481 for ; Tue, 18 Sep 2018 05:38:03 +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 6F02DE2618 for ; Tue, 18 Sep 2018 05:38:01 +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 C624023FA5 for ; Tue, 18 Sep 2018 05:38:00 +0000 (UTC) Date: Tue, 18 Sep 2018 05:38:00 +0000 (UTC) From: "Makoto Yui (JIRA)" To: issues@hivemall.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HIVEMALL-219) NullPointerException in pLSA model MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVEMALL-219?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Makoto Yui reassigned HIVEMALL-219: ----------------------------------- Assignee: Makoto Yui > NullPointerException in pLSA model > ---------------------------------- > > Key: HIVEMALL-219 > URL: https://issues.apache.org/jira/browse/HIVEMALL-219 > Project: Hivemall > Issue Type: Bug > Affects Versions: 0.5.0 > Reporter: jsocsmao > Assignee: Makoto Yui > Priority: Major > > =C2=A0 > I was not able to have pLSA model working on relatively small production = workload (5000 docs) with number of reducers > 1. > It worked with 1000 documents in a single reducer. > =C2=A0 > I tried Tez or map-reduce engines: > hive> create table docres as > =C2=A0=C2=A0=C2=A0 > with word_counts as ( > =C2=A0=C2=A0=C2=A0 >=C2=A0=C2=A0 select docid, feature(word, count(word))= as f > =C2=A0=C2=A0=C2=A0 >=C2=A0=C2=A0 from docs t1 lateral view explode(tokeni= ze(doc, true)) t2 as word > =C2=A0=C2=A0=C2=A0 >=C2=A0=C2=A0 where not is_stopword(word) > =C2=A0=C2=A0=C2=A0 >=C2=A0=C2=A0 group by docid, word > =C2=A0=C2=A0=C2=A0 > ), > =C2=A0=C2=A0=C2=A0 > input as ( > =C2=A0=C2=A0=C2=A0 >=C2=A0=C2=A0 select docid, collect_list(f) as feature= s > =C2=A0=C2=A0=C2=A0 >=C2=A0=C2=A0 from word_counts > =C2=A0=C2=A0=C2=A0 >=C2=A0=C2=A0 group by docid) > =C2=A0=C2=A0=C2=A0 > select=C2=A0 train_plsa(features, '-topics 20 -iter = 10 -s 500 -delta 1 -alpha 500 -eps 1') as (label, word, prob) > =C2=A0=C2=A0=C2=A0 > from=C2=A0 input; > Total jobs =3D 1 > Launching Job 1 out of 1 > Number of reduce tasks not specified. Defaulting to jobconf value of: 4 > In order to change the average load for a reducer (in bytes): > =C2=A0 set hive.exec.reducers.bytes.per.reducer=3D > In order to limit the maximum number of reducers: > =C2=A0 set hive.exec.reducers.max=3D > In order to set a constant number of reducers: > =C2=A0 set mapreduce.job.reduces=3D > Kill Command =3D /usr/hdp/2.6.1.10-4/hadoop/bin/hadoop job=C2=A0 -kill jo= b_1536748924580_2024 > Hadoop job information for Stage-1: number of mappers: 1; number of reduc= ers: 4 > 2018-09-17 19:05:38,300 Stage-1 map =3D 0%,=C2=A0 reduce =3D 0% > 2018-09-17 19:05:52,225 Stage-1 map =3D 35%,=C2=A0 reduce =3D 0%, Cumulat= ive CPU 10.56 sec > 2018-09-17 19:05:55,428 Stage-1 map =3D 100%,=C2=A0 reduce =3D 0%, Cumula= tive CPU 14.69 sec > 2018-09-17 19:06:01,903 Stage-1 map =3D 100%,=C2=A0 reduce =3D 25%, Cumul= ative CPU 14.69 sec > 2018-09-17 19:06:02,963 Stage-1 map =3D 100%,=C2=A0 reduce =3D 0%, Cumula= tive CPU 14.69 sec > 2018-09-17 19:06:09,433 Stage-1 map =3D 100%,=C2=A0 reduce =3D 17%, Cumul= ative CPU 25.22 sec > 2018-09-17 19:06:12,803 Stage-1 map =3D 100%,=C2=A0 reduce =3D 18%, Cumul= ative CPU 28.45 sec > 2018-09-17 19:06:24,672 Stage-1 map =3D 100%,=C2=A0 reduce =3D 19%, Cumul= ative CPU 41.58 sec > 2018-09-17 19:06:36,482 Stage-1 map =3D 100%,=C2=A0 reduce =3D 20%, Cumul= ative CPU 53.84 sec > 2018-09-17 19:07:16,082 Stage-1 map =3D 100%,=C2=A0 reduce =3D 100%, Cumu= lative CPU 14.69 sec > MapReduce Total cumulative CPU time: 14 seconds 690 msec > Ended Job =3D job_1536748924580_2024 with errors > Error during job, obtaining debugging information... > Examining task ID: task_1536748924580_2024_m_000000 (and more) from job j= ob_1536748924580_2024 > Examining task ID: task_1536748924580_2024_r_000003 (and more) from job j= ob_1536748924580_2024 > Examining task ID: task_1536748924580_2024_r_000001 (and more) from job j= ob_1536748924580_2024 > Task with the most failures(10): > ----- > ----- > Diagnostic Messages for this Task: > Error: java.lang.RuntimeException: Hive Runtime Error while closing opera= tors: null > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.hive.ql.e= xec.mr.ExecReducer.close(ExecReducer.java:286) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.mapred.Re= duceTask.runOldReducer(ReduceTask.java:453) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.mapred.Re= duceTask.run(ReduceTask.java:392) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.mapred.Ya= rnChild$2.run(YarnChild.java:170) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.security.AccessControl= ler.doPrivileged(Native Method) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at javax.security.auth.Subject= .doAs(Subject.java:422) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.security.= UserGroupInformation.doAs(UserGroupInformation.java:1866) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.mapred.Ya= rnChild.main(YarnChild.java:164) > Caused by: java.lang.NullPointerException > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at hivemall.topicmodel.Probabi= listicTopicModelBaseUDTF.finalizeTraining(ProbabilisticTopicModelBaseUDTF.j= ava:277) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at hivemall.topicmodel.Probabi= listicTopicModelBaseUDTF.close(ProbabilisticTopicModelBaseUDTF.java:270) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.hive.ql.e= xec.UDTFOperator.closeOp(UDTFOperator.java:145) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.hive.ql.e= xec.Operator.close(Operator.java:620) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.hive.ql.e= xec.Operator.close(Operator.java:634) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.hive.ql.e= xec.Operator.close(Operator.java:634) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.hive.ql.e= xec.Operator.close(Operator.java:634) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.hive.ql.e= xec.Operator.close(Operator.java:634) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.hadoop.hive.ql.e= xec.mr.ExecReducer.close(ExecReducer.java:278) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ... 7 more > =C2=A0 > =C2=A0 > =C2=A0 > JAR :hivemall-all-0.5.0-incubating.jar -- This message was sent by Atlassian JIRA (v7.6.3#76005)