hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Why do I get ServiceException?
Date Tue, 30 May 2017 15:06:23 GMT
Your code snippet is formatted in a strange way.
Can you pastebin:

code snippet copied from Eclipse (or text editor of your choice)
complete stack trace for the ServiceException

Which version of hbase are you using ?

Was there any other protobuf jar in the classpath ?

Cheers

On Sun, May 28, 2017 at 10:01 AM, Cheyenne Forbes <
cheyenne.osanu.forbes@gmail.com> wrote:

> I'm getting *com.google.protobuf.ServiceException *when I try:
>
>
>
>
>
>
>
> *        Configuration conf = HBaseConfiguration.create();
> try{            Connection connection =
> ConnectionFactory.createConnection(conf);            Table table =
> connection.getTable(TableName.valueOf(Bytes.toBytes( "users" )));
>             MyPB.TestRequest request = *
>
>
>
> *MyPB.TestRequest.newBuilder().setId("test_id").build();
>             CoprocessorRpcChannel channel =
> table.coprocessorService(Bytes.toBytes("test_id"));
>     **MyPB.TestService.BlockingInterface
> service = *
>
>
> *MyPB.TestService.newBlockingStub(channel);        LOG.warning("avapnoAVO
> 9");                        **MyPB.TestResponse response =
> service.getTestRes(null, request);*
>
> Regards,
>
> Cheyenne O. Forbes
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message