hivemall-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From helenahm <>
Subject [GitHub] incubator-hivemall issue #82: Encoding related bug in LDA.
Date Fri, 02 Jun 2017 07:35:03 GMT
Github user helenahm commented on the issue:
    Also, in my query (below), I had to add ln != null, to not submit empty text, otherwise
an error (below below) is thrown
    create temporary function train_lda as 'hivemall.topicmodel.LDAUDTF';
    with word_counts as (
        cast(rownum as int) as docid,
        feature(word, count(word)) as word_count
      from data_rownum t1 LATERAL VIEW explode(tokenize(ln, true)) t2 as word
        not is_stopword(word) and ln != ""  
        group by
        rownum, word
      label, word, avg(lambda) as lambda
    from (
        train_lda(feature, "-topics 2 -iter 20") as (label, word, lambda)
      from (
        select docid, collect_set(word_count) as feature
        from word_counts
        group by docid
      ) t1
    ) t2
    group by label, word
    order by lambda desc
    Diagnostic Messages for this Task:
    Error: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive
Runtime Error while processing row {"rownum":"179","ln":null}
            at org.apache.hadoop.mapred.MapTask.runOldMapper(
            at org.apache.hadoop.mapred.YarnChild$
            at Method)
            at org.apache.hadoop.mapred.YarnChild.main(
    Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while
processing row {"rownum":"179","ln":null}
            at org.apache.hadoop.hive.ql.exec.MapOperator.process(
            ... 8 more
    Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to execute method
public java.util.List,boolean)
 on object of class
with arguments {null, true:java.lang.Boolean} of size 2
            at org.apache.hadoop.hive.ql.exec.FunctionRegistry.invoke(
            at org.apache.hadoop.hive.ql.udf.generic.GenericUDFBridge.evaluate(
            at org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator._evaluate(
            at org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(
            at org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(
            at org.apache.hadoop.hive.ql.exec.SelectOperator.process(
            at org.apache.hadoop.hive.ql.exec.Operator.forward(
            at org.apache.hadoop.hive.ql.exec.LateralViewForwardOperator.process(
            at org.apache.hadoop.hive.ql.exec.Operator.forward(
            at org.apache.hadoop.hive.ql.exec.FilterOperator.process(
            at org.apache.hadoop.hive.ql.exec.Operator.forward(
            at org.apache.hadoop.hive.ql.exec.TableScanOperator.process(
            at org.apache.hadoop.hive.ql.exec.MapOperator$MapOpCtx.forward(
            at org.apache.hadoop.hive.ql.exec.MapOperator.process(
            ... 9 more
    Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(
            at java.lang.reflect.Method.invoke(
            at org.apache.hadoop.hive.ql.exec.FunctionRegistry.invoke(
            ... 22 more
    Caused by: java.lang.NullPointerException
            ... 26 more

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message