Hi,

I need to provide a REST API (or similar) to receive requests to my
topology and return a JSON with the result of the processing.

What is the best way to do it in Apache Storm 1.1.x? Is there any
alternative to DRPC?

I had a preliminary version using DRPC server (with Storm 0.9.7) and a PHP
DRPC client (like the one in https://github.com/mithunsatheesh/php-drpc),
but since I've migrated... it's impossible to make it works.

Now all the time I'm getting this error:

*Fatal error: Uncaught exception 'Thrift\Exception\TTransportException'
with message 'TSocket: timed out reading 4 bytes from x.x.x.x:3772' in
/usr/share/topology/www/lib/Thrift/Transport/TSocket.php:278 Stack trace:
#0 /usr/share/topology/www/lib/Thrift/Transport/TTransport.php(74):
Thrift\Transport\TSocket->read(4) #1
/usr/share/topology/www/lib/Thrift/Transport/TFramedTransport.php(139):
Thrift\Transport\TTransport->readAll(4) #2
/usr/share/topology/www/lib/Thrift/Transport/TFramedTransport.php(106):
Thrift\Transport\TFramedTransport->readFrame() #3
/usr/share/topology/www/lib/Thrift/Transport/TTransport.php(74):
Thrift\Transport\TFramedTransport->read(4) #4
/usr/share/topology/www/lib/Thrift/Protocol/TBinaryProtocol.php(305):
Thrift\Transport\TTransport->readAll(4) #5
/usr/share/ossim/www/lib/Thrift/Protocol/TBinaryProtocol.php(197):
Thrift\Protocol\TBinaryProtocol->readI32(NULL) #6
/usr/share/topology/www/lib/DistributedRPC.php(69 in
/usr/share/topology/www/lib/Thrift/Transport/TSocket.php on line 278*

Any help is welcome!!

Thanks in advance,
   Susana

Reply via email to