Github user amaya382 commented on the issue:

    https://github.com/apache/incubator-hivemall/pull/95
  
    @myui this is it
    
    ```
    select train_xgboost_classifier(features, case when label = 'Iris-setosa' 
then 1.0 else 0.0 end) from iris_scaled;
    OK
    org.apache.hadoop.hive.ql.metadata.HiveException: MapredContext is not set
            at hivemall.xgboost.XGBoostUDTF.close(XGBoostUDTF.java:333)
            at 
org.apache.hadoop.hive.ql.exec.UDTFOperator.closeOp(UDTFOperator.java:152)
            at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:683)
            at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:697)
            at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:697)
            at 
org.apache.hadoop.hive.ql.exec.FetchOperator.closeOperator(FetchOperator.java:552)
            at 
org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:152)
            at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:2098)
            at 
org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:252)
            at 
org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:183)
            at 
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:399)
            at 
org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:776)
            at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:714)
            at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)
            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)
    org.apache.hadoop.hive.ql.metadata.HiveException: MapredContext is not set
            at hivemall.xgboost.XGBoostUDTF.close(XGBoostUDTF.java:333)
            at 
org.apache.hadoop.hive.ql.exec.UDTFOperator.closeOp(UDTFOperator.java:152)
            at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:683)
            at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:697)
            at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:697)
            at 
org.apache.hadoop.hive.ql.exec.FetchOperator.closeOperator(FetchOperator.java:552)
            at 
org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:152)
            at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:2098)
            at 
org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:252)
            at 
org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:183)
            at 
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:399)
            at 
org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:776)
            at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:714)
            at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)
            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)
    Failed with exception 
java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: 
MapredContext is not set
    ```


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to