├── flink-connector-pinot ├── docs │ └── images │ │ ├── PinotSinkWriter.png │ │ ├── PinotSinkWriter_prepareCommit.png │ │ └── PinotSinkGlobalCommitter_combine.png └── src │ ├── test │ └── resources │ │ ├── pinot-broker │ │ └── pinot-broker.conf │ │ ├── pinot-server │ │ └── pinot-server.conf │ │ ├── pinot-controller │ │ └── pinot-controller.conf │ │ ├── log4j.properties │ │ └── log4j2-test.properties │ └── main │ └── java │ └── org │ └── apache │ └── flink │ └── streaming │ └── connectors │ └── pinot │ ├── exceptions │ └── PinotControllerApiException.java │ ├── external │ ├── JsonSerializer.java │ └── EventTimeExtractor.java │ ├── v2 │ ├── external │ │ ├── JsonSerializer.java │ │ └── EventTimeExtractor.java │ ├── writer │ │ └── PinotWriterState.java │ └── committer │ │ └── PinotSinkCommittable.java │ ├── segment │ └── name │ │ └── PinotSinkSegmentNameGenerator.java │ ├── committer │ └── PinotSinkGlobalCommittable.java │ └── filesystem │ └── FileSystemAdapter.java ├── flink-connector-influxdb2 ├── media │ ├── source-architecture.png │ └── connector-architecture.png └── src │ ├── test │ ├── resources │ │ ├── influx-setup.sh │ │ └── log4j2-test.properties │ └── java │ │ └── org │ │ └── apache │ │ └── flink │ │ └── streaming │ │ └── connectors │ │ └── influxdb │ │ ├── source │ │ ├── reader │ │ │ └── InfluxDBTestDeserializer.java │ │ └── InfluxDBSourceBuilderTest.java │ │ ├── sink │ │ └── writer │ │ │ └── InfluxDBTestSerializer.java │ │ ├── sink2 │ │ └── writer │ │ │ └── InfluxDBTestSerializer.java │ │ └── util │ │ └── InfluxDBContainer.java │ └── main │ └── java │ └── org │ └── apache │ └── flink │ └── streaming │ └── connectors │ └── influxdb │ ├── source │ ├── enumerator │ │ ├── InfluxDBSourceEnumState.java │ │ └── InfluxDBSourceEnumStateSerializer.java │ ├── http │ │ ├── HealthCheckHandler.java │ │ └── Handler.java │ ├── split │ │ ├── InfluxDBSplit.java │ │ └── InfluxDBSplitSerializer.java │ └── reader │ │ ├── deserializer │ │ └── InfluxDBDataPointDeserializer.java │ │ └── InfluxDBRecordEmitter.java │ ├── sink │ ├── writer │ │ └── InfluxDBSchemaSerializer.java │ └── commiter │ │ └── InfluxDBCommittableSerializer.java │ └── sink2 │ └── writer │ └── InfluxDBSchemaSerializer.java ├── NOTICE ├── .gitignore ├── .gitattributes ├── flink-connector-redis └── src │ ├── main │ ├── resources │ │ └── META-INF │ │ │ └── services │ │ │ ├── org.apache.flink.table.factories.TableFactory │ │ │ └── org.apache.flink.streaming.connectors.redis.common.hanlder.RedisHandler │ └── java │ │ └── org │ │ └── apache │ │ └── flink │ │ └── streaming │ │ └── connectors │ │ └── redis │ │ ├── common │ │ ├── Util.java │ │ ├── mapper │ │ │ └── row │ │ │ │ ├── SetMapper.java │ │ │ │ ├── HSetMapper.java │ │ │ │ ├── IncrByMapper.java │ │ │ │ ├── SAddMapper.java │ │ │ │ ├── ZAddMapper.java │ │ │ │ ├── LPushMapper.java │ │ │ │ ├── PfAddMapper.java │ │ │ │ ├── RPushMapper.java │ │ │ │ ├── DecrByMapper.java │ │ │ │ ├── HIncrByMapper.java │ │ │ │ ├── ZIncrByMapper.java │ │ │ │ ├── SetExMapper.java │ │ │ │ ├── DecrByExMapper.java │ │ │ │ └── IncrByExMapper.java │ │ └── hanlder │ │ │ ├── FlinkJedisConfigHandler.java │ │ │ ├── RedisHandler.java │ │ │ └── RedisMapperHandler.java │ │ └── descriptor │ │ └── RedisValidator.java │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── flink │ │ └── streaming │ │ └── connectors │ │ └── redis │ │ ├── common │ │ ├── config │ │ │ ├── JedisPoolConfigTest.java │ │ │ ├── JedisSentinelConfigTest.java │ │ │ └── FlinkJedisConfigBaseTest.java │ │ └── mapper │ │ │ └── RedisDataTypeDescriptionTest.java │ │ └── RedisITCaseBase.java │ └── resources │ └── log4j.properties ├── flink-connector-kudu └── src │ ├── main │ ├── resources │ │ └── META-INF │ │ │ └── services │ │ │ ├── org.apache.flink.table.factories.Factory │ │ │ └── org.apache.flink.table.factories.TableFactory │ └── java │ │ └── org │ │ └── apache │ │ └── flink │ │ └── connectors │ │ └── kudu │ │ ├── connector │ │ ├── writer │ │ │ ├── RowOperationMapper.java │ │ │ ├── TupleOperationMapper.java │ │ │ └── KuduOperationMapper.java │ │ ├── convertor │ │ │ ├── RowResultConvertor.java │ │ │ └── RowResultRowConvertor.java │ │ ├── failure │ │ │ ├── DefaultKuduFailureHandler.java │ │ │ └── KuduFailureHandler.java │ │ ├── reader │ │ │ └── KuduInputSplit.java │ │ ├── ColumnSchemasFactory.java │ │ └── CreateTableOptionsFactory.java │ │ └── table │ │ └── UpsertOperationMapper.java │ └── test │ ├── resources │ ├── log4j.properties │ └── log4j2-test.properties │ └── java │ └── org │ └── apache │ └── flink │ └── connectors │ └── kudu │ ├── connector │ └── KuduFilterInfoTest.java │ ├── table │ └── KuduTableTestUtils.java │ └── writer │ ├── AbstractOperationTest.java │ └── RowDataUpsertOperationMapperTest.java ├── flink-connector-akka ├── src │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── flink │ │ │ └── streaming │ │ │ └── connectors │ │ │ └── akka │ │ │ ├── package-info.java │ │ │ └── utils │ │ │ ├── UnsubscribeReceiver.java │ │ │ └── SubscribeReceiver.java │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── flink │ │ │ └── streaming │ │ │ └── connectors │ │ │ └── akka │ │ │ └── utils │ │ │ └── Message.java │ │ └── resources │ │ ├── feeder_actor.conf │ │ └── log4j.properties └── README.md ├── .asf.yaml ├── flink-connector-activemq ├── src │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── flink │ │ │ └── streaming │ │ │ └── connectors │ │ │ └── activemq │ │ │ ├── DestinationType.java │ │ │ └── internal │ │ │ ├── RunningChecker.java │ │ │ ├── AMQUtil.java │ │ │ └── AMQExceptionListener.java │ └── test │ │ └── resources │ │ └── log4j.properties └── README.md ├── flink-connector-influxdb ├── examples │ └── src │ │ └── main │ │ └── resources │ │ └── log4j.properties └── README.md ├── flink-library-siddhi └── src │ ├── main │ └── java │ │ └── org │ │ └── apache │ │ └── flink │ │ └── streaming │ │ └── siddhi │ │ ├── exception │ │ ├── UndefinedStreamException.java │ │ └── DuplicatedStreamException.java │ │ ├── operator │ │ └── StreamRecordComparator.java │ │ └── utils │ │ └── SiddhiStreamFactory.java │ └── test │ ├── resources │ ├── log4j-test.properties │ └── logback-test.xml │ └── java │ └── org │ └── apache │ └── flink │ └── streaming │ └── siddhi │ ├── schema │ └── StreamSerializerTest.java │ └── utils │ └── SiddhiTupleFactoryTest.java ├── flink-connector-netty └── src │ ├── test │ ├── resources │ │ ├── logback-test.xml │ │ └── log4j-test.properties │ └── scala │ │ └── org │ │ └── apache │ │ └── flink │ │ └── streaming │ │ └── connectors │ │ └── netty │ │ └── example │ │ ├── HttpSourceExample.scala │ │ ├── NettyClientHandler.scala │ │ └── TcpSourceExample.scala │ └── main │ └── scala │ └── org │ └── apache │ └── flink │ └── streaming │ └── connectors │ └── netty │ └── example │ ├── LineParserTrait.scala │ ├── TcpHandler.scala │ ├── ServerTrait.scala │ ├── HttpReceiverSource.scala │ └── TcpReceiverSource.scala ├── flink-connector-flume ├── src │ ├── test │ │ ├── resources │ │ │ ├── log4j.properties │ │ │ └── docker │ │ │ │ └── conf │ │ │ │ ├── source.conf │ │ │ │ └── sink.conf │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── flink │ │ │ └── streaming │ │ │ └── connectors │ │ │ └── flume │ │ │ ├── FlumeUtilsTest.java │ │ │ └── FlumeSinkTest.java │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── flink │ │ └── streaming │ │ └── connectors │ │ └── flume │ │ └── FlumeEventBuilder.java └── README.md ├── dev ├── checkstyle-suppressions.xml └── change-scala-version.sh ├── README.md ├── .github └── workflows │ └── maven-ci.yml └── distribution └── src └── main └── assembly └── src.xml /flink-connector-pinot/docs/images/PinotSinkWriter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/bahir-flink/HEAD/flink-connector-pinot/docs/images/PinotSinkWriter.png -------------------------------------------------------------------------------- /flink-connector-influxdb2/media/source-architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/bahir-flink/HEAD/flink-connector-influxdb2/media/source-architecture.png -------------------------------------------------------------------------------- /flink-connector-influxdb2/media/connector-architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/bahir-flink/HEAD/flink-connector-influxdb2/media/connector-architecture.png -------------------------------------------------------------------------------- /flink-connector-pinot/docs/images/PinotSinkWriter_prepareCommit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/bahir-flink/HEAD/flink-connector-pinot/docs/images/PinotSinkWriter_prepareCommit.png -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Apache Bahir 2 | Copyright (c) 2016-2017 The Apache Software Foundation. 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /flink-connector-pinot/docs/images/PinotSinkGlobalCommitter_combine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/bahir-flink/HEAD/flink-connector-pinot/docs/images/PinotSinkGlobalCommitter_combine.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Mac 2 | .DS_Store 3 | 4 | # Eclipse 5 | .classpath 6 | .project 7 | .settings/ 8 | target/ 9 | 10 | # Intellij 11 | .idea/ 12 | .idea_modules/ 13 | *.iml 14 | *.iws 15 | *.class 16 | *.log 17 | 18 | # Python 19 | *.pyc 20 | 21 | # Others 22 | .checkstyle 23 | .fbExcludeFilterFile 24 | dependency-reduced-pom.xml 25 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior to have all files normalized to Unix-style 2 | # line endings upon check-in. 3 | * text=auto 4 | 5 | # Declare files that will always have CRLF line endings on checkout. 6 | *.bat text eol=crlf 7 | 8 | # Denote all files that are truly binary and should not be modified. 9 | *.dll binary 10 | *.exp binary 11 | *.lib binary 12 | *.pdb binary 13 | *.exe binary 14 | -------------------------------------------------------------------------------- /flink-connector-redis/src/main/resources/META-INF/services/org.apache.flink.table.factories.TableFactory: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | org.apache.flink.streaming.connectors.redis.RedisTableSinkFactory -------------------------------------------------------------------------------- /flink-connector-kudu/src/main/resources/META-INF/services/org.apache.flink.table.factories.Factory: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | org.apache.flink.connectors.kudu.table.dynamic.KuduDynamicTableSourceSinkFactory -------------------------------------------------------------------------------- /flink-connector-akka/src/main/java/org/apache/flink/streaming/connectors/akka/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * Akka receiver for Flink Streaming. 20 | */ 21 | package org.apache.flink.streaming.connectors.akka; 22 | -------------------------------------------------------------------------------- /flink-connector-kudu/src/main/resources/META-INF/services/org.apache.flink.table.factories.TableFactory: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | org.apache.flink.connectors.kudu.table.KuduTableFactory 17 | org.apache.flink.connectors.kudu.table.dynamic.catalog.KuduCatalogFactory 18 | -------------------------------------------------------------------------------- /.asf.yaml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | github: 19 | enabled_merge_buttons: 20 | squash: true 21 | merge: false 22 | rebase: true 23 | notifications: 24 | commits: commits@bahir.apache.org 25 | issues: reviews@bahir.apache.org 26 | pullrequests: reviews@bahir.apache.org 27 | jira_options: link label -------------------------------------------------------------------------------- /flink-connector-activemq/src/main/java/org/apache/flink/streaming/connectors/activemq/DestinationType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.flink.streaming.connectors.activemq; 19 | 20 | /** 21 | * Type of AMQ destination 22 | */ 23 | public enum DestinationType { 24 | QUEUE, 25 | TOPIC 26 | } 27 | -------------------------------------------------------------------------------- /flink-connector-influxdb/examples/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | log4j.rootLogger=INFO, console 19 | 20 | log4j.appender.console=org.apache.log4j.ConsoleAppender 21 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p %-60c %x - %m%n 23 | 24 | -------------------------------------------------------------------------------- /flink-connector-influxdb2/src/test/resources/influx-setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | 19 | influx setup \ 20 | --force \ 21 | --username "${INFLUXDB_USER}" \ 22 | --password "${INFLUXDB_PASSWORD}" \ 23 | --bucket "${INFLUXDB_BUCKET}" \ 24 | --org "${INFLUXDB_ORG}" \ 25 | --retention "${INFLUXDB_RETENTION}""${INFLUXDB_RETENTION_UNIT}" 26 | -------------------------------------------------------------------------------- /flink-library-siddhi/src/main/java/org/apache/flink/streaming/siddhi/exception/UndefinedStreamException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.flink.streaming.siddhi.exception; 19 | 20 | public class UndefinedStreamException extends RuntimeException { 21 | public UndefinedStreamException(String message) { 22 | super(message); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /flink-library-siddhi/src/main/java/org/apache/flink/streaming/siddhi/exception/DuplicatedStreamException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.flink.streaming.siddhi.exception; 19 | 20 | public class DuplicatedStreamException extends RuntimeException { 21 | public DuplicatedStreamException(String message) { 22 | super(message); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /flink-connector-pinot/src/test/resources/pinot-broker/pinot-broker.conf: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | ################################################################################ 18 | 19 | pinot.broker.client.queryPort=8099 20 | pinot.broker.routing.table.builder.class=random 21 | pinot.set.instance.id.to.hostname=true -------------------------------------------------------------------------------- /flink-connector-akka/src/test/java/org/apache/flink/streaming/connectors/akka/utils/Message.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.flink.streaming.connectors.akka.utils; 19 | 20 | public class Message { 21 | public static final String WELCOME_MESSAGE = "welcome receiver"; 22 | public static final String FEEDER_MESSAGE = "this is feeder"; 23 | 24 | public static String ACK_MESSAGE; 25 | } 26 | -------------------------------------------------------------------------------- /flink-connector-influxdb2/src/main/java/org/apache/flink/streaming/connectors/influxdb/source/enumerator/InfluxDBSourceEnumState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.flink.streaming.connectors.influxdb.source.enumerator; 19 | 20 | import org.apache.flink.annotation.Internal; 21 | 22 | /** The state of InfluxDB source enumerator. */ 23 | @Internal 24 | public final class InfluxDBSourceEnumState {} 25 | -------------------------------------------------------------------------------- /flink-connector-redis/src/main/java/org/apache/flink/streaming/connectors/redis/common/Util.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.flink.streaming.connectors.redis.common; 18 | 19 | public class Util { 20 | public static void checkArgument(boolean condition, String message) { 21 | if(!condition) { 22 | throw new IllegalArgumentException(message); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /flink-connector-activemq/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | # This file ensures that tests executed from the IDE show log output 19 | 20 | log4j.rootLogger=WARN, console 21 | log4j.appender.console=org.apache.log4j.ConsoleAppender 22 | log4j.appender.console.target=System.err 23 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 24 | log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p %-60c %x - %m%n 25 | -------------------------------------------------------------------------------- /flink-connector-netty/src/test/resources/logback-test.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | This factory implementation must be Serializable as it will be used directly in the Flink sources
31 | * and sinks.
32 | */
33 | @PublicEvolving
34 | public interface ColumnSchemasFactory extends Serializable {
35 |
36 | /**
37 | * Creates the columns of the Kudu table that will be used during the createTable operation.
38 | *
39 | * @return List of columns.
40 | */
41 | List This factory implementation must be Serializable as it will be used directly in the Flink sources
30 | * and sinks.
31 | */
32 | @PublicEvolving
33 | public interface CreateTableOptionsFactory extends Serializable {
34 |
35 | /**
36 | * Creates the {@link CreateTableOptions} that will be used during the createTable operation.
37 | *
38 | * @return CreateTableOptions for creating the table.
39 | */
40 | CreateTableOptions getCreateTableOptions();
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/flink-connector-pinot/src/main/java/org/apache/flink/streaming/connectors/pinot/v2/writer/PinotWriterState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package org.apache.flink.streaming.connectors.pinot.v2.writer;
20 |
21 | import java.io.Serializable;
22 | import java.util.List;
23 |
24 | public class PinotWriterState implements Serializable {
25 |
26 | private final List