Github user gaborhermann commented on a diff in the pull request: https://github.com/apache/flink/pull/500#discussion_r26760037 --- Diff: flink-staging/flink-streaming/flink-streaming-connectors/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaITCase.java --- @@ -0,0 +1,246 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.flink.streaming.connectors.kafka; + +import java.io.File; +import java.io.IOException; +import java.net.InetAddress; +import java.net.UnknownHostException; +import java.util.BitSet; +import java.util.Properties; + +import kafka.server.KafkaConfig; +import kafka.server.KafkaServer; +import kafka.utils.Time; +import org.apache.curator.test.TestingServer; +import org.apache.flink.api.common.functions.FlatMapFunction; +import org.apache.flink.api.common.functions.MapFunction; +import org.apache.flink.runtime.client.JobExecutionException; +import org.apache.flink.streaming.api.datastream.DataStream; +import org.apache.flink.streaming.api.datastream.DataStreamSource; +import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; +import org.apache.flink.streaming.api.function.sink.SinkFunction; +import org.apache.flink.streaming.api.function.source.SourceFunction; +import org.apache.flink.streaming.connectors.kafka.api.KafkaSink; +import org.apache.flink.streaming.connectors.kafka.api.simple.KafkaTopicUtils; +import org.apache.flink.streaming.connectors.kafka.api.simple.PersistentKafkaSource; +import org.apache.flink.streaming.connectors.kafka.partitioner.KafkaDistributePartitioner; +import org.apache.flink.streaming.connectors.util.JavaDefaultStringSchema; +import org.apache.flink.util.Collector; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.TemporaryFolder; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Code in this test is based on the following GitHub repository: + * (as per commit bc6b2b2d5f6424d5f377aa6c0871e82a956462ef) + * + * https://github.com/sakserv/hadoop-mini-clusters (ASL licensed) + */ + +public class KafkaITCase { + + private static final Logger LOG = LoggerFactory.getLogger(KafkaITCase.class); + + private final String TOPIC = "myTopic"; + + private final int ZK_PORT = 6667; + private final int KAFKA_PORT = 6668; + private String kafkaHost; --- End diff -- Thanks for the hint, using it.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---