I fixed this after I follow the coprocessor example in GitHub. And the cause of
this is that the override of `getService()` from Coprocessor interface.
Before :
```
@Override
public Iterable<Service> getServices() {
return RegionCoprocessor.super.getServices();
}
```
After:
```
@Override
public Iterable<Service> getServices() {
return Collections.singleton(this);
}
```
________________________________
发件人: 王 浩成 <[email protected]>
发送时间: 2023年3月2日 10:30
收件人: [email protected] <[email protected]>
主题: HBase 2.4.15 coprocessor endpoint failed to load: UnknownProtocolException
Hi all,
I have a region coprocessor endpoint, and use static load method to deploy it.
And in regionserver I can see the log that is has been loaded, also I can see
the coprocessor in the RegionServer's Web UI.
However, when I use the endpoint to do some query, it fail with
```
org.apache.hadoop.hbase.exceptions.UnknownProtocolException:
org.apache.hadoop.hbase.exceptions.UnknownProtocolException: No registered
coprocessor service found for QueryService in region
ID_Temporal_query_test1-OBJECT_ID_T-default, .....
```
It seems like the coprocessor is not successfully load, but in master and
regionserver log, all I can get about my endpoint said nothing strange about
this.
```
INFO (CoprocessorHost.java:174) 03-02 10:26:05,488 System coprocessor
cn.edu.whu.trajspark.query.coprocessor.STQueryEndPoint loaded,
priority=536870911.
INFO (CoprocessorHost.java:174) 03-02 10:26:05,488 System coprocessor
cn.edu.whu.trajspark.query.coprocessor.STQueryEndPoint loaded,
priority=536870911.
INFO (CoprocessorHost.java:174) 03-02 10:26:05,488 System coprocessor
cn.edu.whu.trajspark.query.coprocessor.STQueryEndPoint loaded,
priority=536870911.
INFO (CoprocessorHost.java:174) 03-02 10:26:05,622 System coprocessor
cn.edu.whu.trajspark.query.coprocessor.STQueryEndPoint loaded,
priority=536870911.
INFO (CoprocessorHost.java:174) 03-02 10:26:05,625 System coprocessor
cn.edu.whu.trajspark.query.coprocessor.STQueryEndPoint loaded,
priority=536870911.
INFO (CoprocessorHost.java:174) 03-02 10:26:05,655 System coprocessor
cn.edu.whu.trajspark.query.coprocessor.STQueryEndPoint loaded,
priority=536870911.
INFO (CoprocessorHost.java:174) 03-02 10:26:05,711 System coprocessor
cn.edu.whu.trajspark.query.coprocessor.STQueryEndPoint loaded,
priority=536870911.
INFO (GlobalMetricRegistriesAdapter.java:134) 03-02 10:26:15,296 Registering
RegionServer,sub=Coprocessor.Region.CP_cn.edu.whu.trajspark.query.coprocessor.STQueryEndPoint
Metrics about HBase RegionObservers
```
Can any one give me some advice on this?