flink
小小聪
这个作者很懒,什么都没留下…
展开
-
flink消费kafka数据直接到hdfs
import org.apache.flink.api.common.functions.FlatMapFunction;import org.apache.flink.api.common.serialization.SimpleStringSchema;import org.apache.flink.api.java.tuple.Tuple2;import org.apache.fli...原创 2019-03-25 11:03:41 · 1805 阅读 · 0 评论 -
flink 编写wordcount
依赖jar包<dependency><groupId>org.apache.flink</groupId><artifactId>flink-java</artifactId><version>1.7.2</version></dependency><dependency&...原创 2019-03-18 17:43:16 · 352 阅读 · 0 评论 -
flink消费kafka 数据
import org.apache.flink.api.common.functions.FlatMapFunction;import org.apache.flink.api.common.serialization.SimpleStringSchema;import org.apache.flink.api.java.tuple.Tuple2;import org.apache.fli...原创 2019-03-22 17:16:10 · 886 阅读 · 0 评论 -
Flink 同步kafka 数据写入hbase
package com.sitesh.test;import java.io.*;import java.util.Arrays;import java.util.List;import java.util.Properties;import java.util.logging.Level;import java.util.logging.Logger;import org.apa...原创 2019-05-07 16:53:24 · 1337 阅读 · 0 评论 -
Flink 两表关联 Could not instantiate outputs in order
Caused by: java.lang.ClassNotFoundException: org.apache.flink.table.runtime.CRowKeySelector具体报错May 16, 2019 10:12:01 AM com.sitesh.SqlJoinWithKafka mainSEVERE: nullorg.apache.flink.client.progra...原创 2019-05-16 11:26:15 · 1786 阅读 · 0 评论 -
Flink 两表关联 流批处理消费kafka 数据写入hbase
Flink流批处理消费kafka 数据写入hbase通过flume将数据写入kafka topicKafka topic1 数据:name, age, sexy, proctime.proctimejava,18,男,20190516rose,28,女,20190516tom,38,男,20190516jack,18,男,20190516luoli,19,女,2019...原创 2019-05-16 11:39:33 · 3760 阅读 · 0 评论 -
FlinkSQL实现WordCount
import org.apache.flink.api.java.DataSet;import org.apache.flink.api.java.ExecutionEnvironment;import org.apache.flink.table.api.Table;import org.apache.flink.table.api.TableEnvironment;import or...原创 2019-09-26 10:04:37 · 875 阅读 · 0 评论