You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Jeremy Handcock (JIRA)" <ji...@apache.org> on 2010/06/29 01:22:50 UTC
[jira] Updated: (MAHOUT-431) NPE in CBayesThetaNormalizerReducer
when using HBase
[ https://issues.apache.org/jira/browse/MAHOUT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeremy Handcock updated MAHOUT-431:
-----------------------------------
Attachment: CBayesThetaNormalizerReducer.patch
Attached patch to initialize the 'hBconf' field in CBayesThetaNormalizerReducer.
> 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
> 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.