FAQ
Hi everyone

Ok I looked at the log the issue is that the regionserver is not finding
the jar essentially it is looking to resolve the path I have given in HDFS
allthough I have not started with hdfs;:// etc....
Is this the wanted behaviour?*
Is there a way to specify this is the local filesystem and not hdfs?
On Thu, Dec 13, 2012 at 3:14 PM, Nicolas Maillard wrote:

Hi everyone

After reading up on coprocessors and testing the ones shipped with Hbase.
I have decided to test the one in the definitive guide.
I created a jar with :
* interface RowCountProtocol extends CoprocessorProtocol*
* class RowCountEndpoint extends BaseEndpointCoprocessor implements
RowCountProtocol*
Compiled it copied the jar on my signle machine cluster.
Logged into the the shell and added it to the "scores" table.
alter '*scores*', METHOD =>
'table_att','coprocessor2'=>'/home/runner/hbaseclient/myjar.jar|coprocessor.
RowCountEndpoint|USER'

If I print the table details I get :
Logged into the the shell and added it to the "scores" table.
*{NAME => 'scores', coprocessor2$1 =>
'/home/runner/hbaseclient/myjar.jar|coprocessor.RowCountEndpoint|',
FAMILIES => [{NAME => 'course*
*
*
But when I try to call the coprocessor: I get UnknownProtocolException

12/12/13 15:01:23 WARN
client.HConnectionManager$HConnectionImplementation: Error executing for
row
java.util.concurrent.ExecutionException:
org.apache.hadoop.hbase.ipc.HBaseRPC$UnknownProtocolException:
org.apache.hadoop.hbase.ipc.HBaseRPC$UnknownProtocolException: No matching
handler for protocol coprocessor.RowCountProtocol in region
scores,,1353343199638.64b71733b3b479cc4cdc92a1e3ee84a6.
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)

Since I only hbve one machine in my cluster shell line should be enough to
put the processor on the table and the tbale date says it knows it exists.
What I am not doing correctly to get the coprocessor loaded?
It says no matching handler so I get a feeling it is not a compilation
problem but really finding a coprocessor by that name?
I have given an absolute to my jar on my filesystem. I vould have put it
in the hdfs that is true.
Could be my key being "coprocessor2"?

regards


Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupscm-users @
categorieshadoop
postedDec 13, '12 at 2:14p
activeDec 13, '12 at 3:05p
posts2
users1
websitecloudera.com
irc#hadoop

1 user in discussion

Nicolas Maillard: 2 posts

People

Translate

site design / logo © 2022 Grokbase