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:17:49 UTC

[jira] Created: (MAHOUT-431) NPE in CBayesThetaNormalizerReducer when using HBase

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


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.


[jira] Updated: (MAHOUT-431) NPE in CBayesThetaNormalizerReducer when using HBase

Posted by "Robin Anil (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Anil updated MAHOUT-431:
------------------------------

        Status: Resolved  (was: Patch Available)
    Resolution: Fixed

Committed

> 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.


[jira] Commented: (MAHOUT-431) NPE in CBayesThetaNormalizerReducer when using HBase

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883802#action_12883802 ] 

Hudson commented on MAHOUT-431:
-------------------------------

Integrated in Mahout-Quality #108 (See [http://hudson.zones.apache.org/hudson/job/Mahout-Quality/108/])
    MAHOUT-431 Fixes NPE problem in CBayes(Jeremy)


> 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.


[jira] Updated: (MAHOUT-431) NPE in CBayesThetaNormalizerReducer when using HBase

Posted by "Jeremy Handcock (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (MAHOUT-431) NPE in CBayesThetaNormalizerReducer when using HBase

Posted by "Jeremy Handcock (JIRA)" <ji...@apache.org>.
     [ 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.