bjustin-ibm commented on issue #210: How to use message feed
URL: 
https://github.com/apache/incubator-openwhisk-package-kafka/issues/210#issuecomment-323073893
 
 
   @zhy989 First verify that the message was indeed produced. Yes, the action 
_should_ fail if the produce was not successful, but it helps to be sure. You 
can verify by doing `wsk activation get 5e5ed2151ecd4a79ac2576ee38f0bab3` and 
examining the result. It should say something like "Successfully sent message 
to {topic}:{partition} at offset {offset}"
   
   Next, verify whether or not the trigger has fired in response to the 
message. You can do this by looking for trigger activations with `wsk 
activation list MyKafkaTrigger1`. If this returns nothing, then your trigger is 
not firing, and you should examine the container logs to figure out why.
   
   If the trigger is firing, then similarly verify whether or not the rule is 
being invoked. This can be done with `wsk activation list iot1`. If this list 
is empty then your rule has likely not been created properly. However, given 
the set of commands you show above, this seems very unlikely.
   
   If the rule is firing, then check to see if your action is being invoked 
with `wsk activation list hello`. If this list is empty, then your action is 
not being invoked. If everything up to this point has been working, this seems 
very unlikely as well.
   
   In all, you need to use the procedure above to see where in the chain of 
expected events things are not happening. Once you find that point, look at the 
activation for the last successful part of the chain to examine the result and 
logs to look for clues about why the next step is failing. If it seems that the 
trigger is not firing at all, use the `docker logs` command to examine the 
kafkaFeedProvider container to see why the trigger isn't working.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to