You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by James Taylor <jt...@salesforce.com> on 2013/02/12 01:07:15 UTC

jarFilePath for HTableDescriptor.addCoprocessor() with 0.94.2 vs 0.94.4

In 0.94.2, if the coprocessor class was on the HBase classpath, then the 
jarFilePath argument to HTableDescriptor.addCoprocessor seemed to 
essentially be ignored - it didn't matter if the jar could be found or 
not. In 0.94.4 we're getting an error if this is the case. Is there a 
way to continue to get the old behavior? We've got HTables that were 
created under 0.94.2 in which scans will stop working if we upgrade to 
0.94.4 because our coprocessors will no longer be found.

Thanks,

     James

Re: jarFilePath for HTableDescriptor.addCoprocessor() with 0.94.2 vs 0.94.4

Posted by lars hofhansl <la...@apache.org>.
This is due to HBASE-7205 (https://issues.apache.org/jira/browse/HBASE-7205)
The new behavior is correct, but it does represent a slight change in behavior.

The difference is that previously we tried to load the class first, if it was in the system classpath we'll find it there. Now we only load from the system classpath when no jar file was specified (again, this is the correct but different behavior).

-- Lars

________________________________
From: James Taylor <jt...@salesforce.com>
To: HBase User <us...@hbase.apache.org> 
Sent: Monday, February 11, 2013 4:07 PM
Subject: jarFilePath for HTableDescriptor.addCoprocessor() with 0.94.2 vs 0.94.4

In 0.94.2, if the coprocessor class was on the HBase classpath, then the jarFilePath argument to HTableDescriptor.addCoprocessor seemed to essentially be ignored - it didn't matter if the jar could be found or not. In 0.94.4 we're getting an error if this is the case. Is there a way to continue to get the old behavior? We've got HTables that were created under 0.94.2 in which scans will stop working if we upgrade to 0.94.4 because our coprocessors will no longer be found.

Thanks,

    James