[ 
https://issues.apache.org/jira/browse/MAHOUT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Handcock updated MAHOUT-431:
-----------------------------------

           Status: Patch Available  (was: Open)
    Fix Version/s: 0.4

> NPE in CBayesThetaNormalizerReducer when using HBase
> ----------------------------------------------------
>
>                 Key: MAHOUT-431
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-431
>             Project: Mahout
>          Issue Type: Bug
>          Components: Classification
>    Affects Versions: 0.3, 0.4
>            Reporter: Jeremy Handcock
>             Fix For: 0.4
>
>         Attachments: CBayesThetaNormalizerReducer.patch
>
>
> I'm trying to use the complementary Bayes classifier and store the model in 
> HBase (using BayesParameters.set("dataSource", "hbase")).  When I run the MR 
> jobs using CBayesDrvier, I get a NullPointerException in 
> CBayesThetaNormalizerReducer at line 92:
> hBconf.set(new HBaseConfiguration(job));
> 'hBconf' is a ThreadLocal<HBaseConfiguration> field and it looks like it has 
> not been initialized.  I initialized it and the model built successfully.  I 
> observed the same bug in the 0.3 release and in 0.4-SNAPSHOT.  I'll attach a 
> patch that initializes the field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to