-
Notifications
You must be signed in to change notification settings - Fork 35
External data source #41
Comments
Hi Sami, I want to confirm your question before I try to find the answer. So same Thanks, Wei Sun | 650.556.3886 On Mon, Jul 29, 2013 at 1:44 AM, sami-misa [email protected] wrote:
|
Hi Thanks for the reply. My problem is that i am not able to change the source of the stream.In the example given in mupd8 , the stream of the application is generated locally from a specified file . But what I wantt to do is to change the source of the stream .I want to have a client application that sends a stream to mupd8 Application. What I have tried to do is to configure the client application to connect using to mupd8 application using sockets and changed the corresponding host and port entries in the application configuration file.Unfortunately it didn't work. |
Here is an example of source config of a socket source. Please let me know "sources" : [ -Wei On Tue, Jul 30, 2013 at 1:39 AM, sami-misa [email protected] wrote:
|
Hello again, I have tried the configuration that you have provided unfortunately it doesn't work. |
Hi, I really need to do it and I can not afford getting the stream from a local file . The packets that my client wants to send contain JSON objects. Can any one help ? |
Following is a workable example "sources" array in config file, {"sources" : [ In order to make external socket source work, your data stream first needs If content of your external source is NOT json object at each line, then -Wei On Wed, Aug 7, 2013 at 5:37 AM, mimi-91 [email protected] wrote:
|
Hi, First of all, thanks for offering this wonderful tool/framework. My question is: what if I want to extract two or more keys from JSON source stream, e.g. "request:requestUrl" and "response:responseHeaderList:Content-Type", do we support this? and how? My 2nd question is: for the key, can key be "request:requestHeaderList:Cookie:com.wm.visitor", given the following JSON definition:{ Thanks, |
No, there is no existing way to use object inside array as key now. But you -Wei On Wed, Aug 7, 2013 at 10:53 AM, syang0 [email protected] wrote:
|
Thanks Wei. How about my other question: what if I want to extract two or more keys from JSON source stream, e.g. "request:requestUrl" and "response:responseHeaderList:Content-Type", do we support this? and how? Regards, |
oops, I missed this question. Regarding this question, the answer is same. :-) Existing source reader -Wei On Wed, Aug 7, 2013 at 2:40 PM, syang0 [email protected] wrote:
|
Hi--just to catch up, I'd add one more remark: Besides trying to overload everything into the source reader, it may be simpler and more powerful to write a simple Mapper to perform the extra steps you desire. For example, a new Mapper can take its input event, parse out the desired (two in your case above) keys from the JSON, and emit a separate event for each key. As a bonus side effect, the Mapper can be written to emit the events to different streams, so that different recipient Mappers and Updaters can subscribe to each kind of event as desired. |
Hello all,
I am trying mupd8 application on a cluster and its working fine with the example given.
What I would like to do, is to have the data source of the application streamed from a different host. The stream of packets contains string type variables. Could someone provide me with example because I tried to edit the configuration file and specify a host that is sending stream of data but it didn't work.
Thanks
The text was updated successfully, but these errors were encountered: