Member since
05-10-2016
5
Posts
0
Kudos Received
0
Solutions
07-21-2017
08:58 AM
worked well
... View more
07-06-2016
03:16 PM
thanks Robert, it worked
... View more
07-05-2016
08:03 AM
Hi , I am doing a poc in which I am trying to write some data on the HDFS using flink . Though I can see the files are getting written but they are stuck with a postfix ".pending" . Any help will be appreciated , also is there a way that only one file is written StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.enableCheckpointing(123, CheckpointingMode.AT_LEAST_ONCE, true); DataStream<String> text = env.readTextFile("D:/names.txt");
DataStream<String> parsed = text.map(new MapFunction<String, String>() {
@Override
public String map(String value) {
return (value);
}
}); parsed.flatMap(new FlatMapFunction<String, String>() {
public void flatMap(String value, Collector<String> out) throws Exception {
for (String s : value.split(" ")) {
out.collect(s);
}
}
}); System.setProperty("HADOOP_USER_NAME", "hdfs");
RollingSink<String> sink = new RollingSink<String>("hdfs://MYMACHINE:8020/flink/test8");
sink.setBucketer(new NonRollingBucketer()); parsed.addSink(sink); env.execute();
... View more
Labels:
- Labels:
-
Apache Flink
-
HDFS
07-04-2016
12:57 PM
Hi , Initially i was working on a kafka project using the deprecated API and was using metadata.broker.list property to connect to the broker ...New API suggests usage of bootstrap.servers property instead ... I could find where the bootstrap.servers property is set so i used the value of metadata.broker.list and it worked.... Didnt find a good enough documentation on the property so can someone tell me the difference between the two and where to find bootstrap.servers property ??/
... View more
Labels:
- Labels:
-
Apache Kafka