Re: Writing the results of the stream onto a CSV File

2017-04-28 Thread Fábio Dias
Regards, Fábio Dias. Abdul Salam Shaikh <abd.salam.sha...@gmail.com> escreveu no dia sexta, 28/04/2017 às 10:18: > Hi, > > I am trying to write the results of my stream into a CSV format using the > following code and it has compilation issues: > > DataStream objectStream = wi

Flink Scheduling and FlinkML

2017-03-31 Thread Fábio Dias
the second scenario, where I need to perform this task every hour, what it is the best way to do it? Thanks, Fábio Dias.

Elasticsearch 5.x connection

2017-03-02 Thread Fábio Dias
che.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:40) at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1116) Do I need to downgrade my elastic version or there is some other way to make it work? Thanks, Fábio Dias.

Re: Apache Flink and Elasticsearch send Json Object instead of string

2017-02-21 Thread Fábio Dias
esJson.put("data", element); > > What you should do here is parse the field values from `element`, and > simply treat them as key-value pairs of the `esJson` map. > > So, the `esJson` should be prepared by doing: > > esJson.put(“id”, 6); > > esJson.put(“name”, “A

Apache Flink and Elasticsearch send Json Object instead of string

2017-02-20 Thread Fábio Dias
Hi, I'm using Flink and Elasticsearch and I want to recieve in elasticsearch a json object ({"id":1, "name":"X"} ect...), I already have a string with this information, but I don't want to save it as string. I recieve this: { "_index": "logs", "_type": "object", "_id":