You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Thilina Rathnayake <th...@gmail.com> on 2015/08/04 07:09:37 UTC

How to use Storm DRPCClient correctly?

Hi All,

I use the following code snippet to setup a DRPC client in my code.

Config conf = new Config();
conf.setDebug(false);
DRPCClient client = new DRPCClient(conf, "localhost", 3772);
client.execute("get_count", "apple ball cat dog")


But when I submit the topology I get the following error:

Exception in thread "main" java.lang.NoSuchMethodError:
backtype.storm.utils.DRPCClient.<init>(Ljava/util/Map;Ljava/lang/String;I)V
at storm.starter.Demo513.main(Demo513.java:61)


I am using storm 0.9.5.

Regards,
Thilina