Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. from storm.drpc import DRPCClient
  2. nimbus = "10.0.0.63"
  3. c = DRPCClient(nimbus, 3772)
  4. c.execute("update_data","value")
  5.  
  6. Traceback (most recent call last):
  7. File "drpctest.py", line 8, in <module>
  8. c.execute("update_data","value")
  9. File "/usr/local/lib/python2.7/dist-packages/storm/drpc.py", line 29, in execute
  10. r = json.loads(self.client.execute(func, args))
  11. File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
  12. return _default_decoder.decode(s)
  13. File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
  14. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  15. File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
  16. raise ValueError("No JSON object could be decoded")
  17. ValueError: No JSON object could be decoded
  18.  
  19. DRPCClient client = new DRPCClient(host_name, 3772);
  20. System.out.println(client.execute("update_data", "value"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement