Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 036D0200D03 for ; Sat, 9 Sep 2017 16:24:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 011F71609B9; Sat, 9 Sep 2017 14:24:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 474B81609B3 for ; Sat, 9 Sep 2017 16:24:05 +0200 (CEST) Received: (qmail 88676 invoked by uid 500); 9 Sep 2017 14:24:04 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 88665 invoked by uid 99); 9 Sep 2017 14:24:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Sep 2017 14:24:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 880E418BF6C for ; Sat, 9 Sep 2017 14:24:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 1BcFLUhssFoH for ; Sat, 9 Sep 2017 14:24:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 55EB85FE64 for ; Sat, 9 Sep 2017 14:24:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 715FBE00C9 for ; Sat, 9 Sep 2017 14:24:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 25AA524137 for ; Sat, 9 Sep 2017 14:24:00 +0000 (UTC) Date: Sat, 9 Sep 2017 14:24:00 +0000 (UTC) From: "Randall Hauch (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KAFKA-5798) Couldnt connect to mysql using mysql.jdbc driver MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 09 Sep 2017 14:24:06 -0000 [ https://issues.apache.org/jira/browse/KAFKA-5798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Randall Hauch resolved KAFKA-5798. ---------------------------------- Resolution: Invalid Closing as invalid, since this involves connectors that are not part of Apache Kafka. > Couldnt connect to mysql using mysql.jdbc driver > ------------------------------------------------ > > Key: KAFKA-5798 > URL: https://issues.apache.org/jira/browse/KAFKA-5798 > Project: Kafka > Issue Type: Bug > Components: KafkaConnect > Affects Versions: 0.10.0.1 > Environment: Ubuntu > Reporter: Bubesh Shankar Govindarajan > > Am a beginner to both java and kafka, trying to connect kafka and mysql to stream data from mysql database and consume it via kafka consumers. > I have downloaded the confluent 3.3.0 from the below link > https://www.confluent.io/download/ > I am using - *confluent-3.3.0* > *+Java version :+* > $ java -version > openjdk version "9-Ubuntu" > OpenJDK Runtime Environment (build 9-Ubuntu+0-9b161-1) > OpenJDK Server VM (build 9-Ubuntu+0-9b161-1, mixed mode) > Mysql JDBC driver: *com.mysql.jdbc_5.1.5.jar* > I have started the zookeeper and kafka server using the below commands > * zookeeper-server-start /home/bubesh/Kafka/confluent-3.3.0/etc/kafka/zookeeper.properties > * kafka-server-start /home/bubesh/Kafka/confluent-3.3.0/etc/kafka/server.properties > *+I have used the below command to invoke kafka-connect - to connect to mysql via jdbc driver:+* > connect-standalone /home/bubesh/Kafka/confluent-3.3.0/etc/schema-registry/connect-avro-standalone.properties /home/bubesh/Kafka/confluent-3.3.0/etc/kafka-connect-jdbc/source-quickstart-mysql.properties > *+My CLASSPATH variable has: +* > /home/bubesh/JDBCDriver/com.mysql.jdbc_5.1.5.jar::/home/bubesh/Kafka/confluent-3.3.0/share/java/kafka/*:/home/bubesh/Kafka/confluent-3.3.0/share/java/confluent-common/*:/home/bubesh/Kafka/confluent-3.3.0/share/java/kafka-serde-tools/*:/home/bubesh/Kafka/confluent-3.3.0/share/java/kafka-connect-elasticsearch/*:/home/bubesh/Kafka/confluent-3.3.0/share/java/kafka-connect-hdfs/*:/home/bubesh/Kafka/confluent-3.3.0/share/java/kafka-connect-jdbc/*:/home/bubesh/Kafka/confluent-3.3.0/share/java/kafka-connect-s3/*:/home/bubesh/Kafka/confluent-3.3.0/share/java/kafka-connect-storage-common/* > *+Error while running the command:+* > Error: Config file not found: /usr/lib/jvm/java-9-openjdk-i386/conf/management/management.properties > *+connect-avro-standalone.properties:+* > bootstrap.servers=localhost:9092 > key.converter=io.confluent.connect.avro.AvroConverter > key.converter.schema.registry.url=http://localhost:8081 > value.converter=io.confluent.connect.avro.AvroConverter > value.converter.schema.registry.url=http://localhost:8081 > internal.key.converter=org.apache.kafka.connect.json.JsonConverter > internal.value.converter=org.apache.kafka.connect.json.JsonConverter > internal.key.converter.schemas.enable=false > internal.value.converter.schemas.enable=false > offset.storage.file.filename=/tmp/connect.offsets > I use a VMware with Ubuntu installed in it and my MySQL sever is installed in my host machine. I have also connected to this > *+ipconfig of the host:+* > Connection-specific DNS Suffix . : home > Link-local IPv6 Address . . . . . : fe80::c81:5928:4ee6:5a2d%9 > IPv4 Address. . . . . . . . . . . : 192.168.1.10 > Subnet Mask . . . . . . . . . . . : 255.255.255.0 > Default Gateway . . . . . . . . . : 192.168.1.1 > *+source-quickstart-mysql.properties:+* > name=mysql-whitelist-timestamp-source > connector.class=io.confluent.connect.jdbc.JdbcSourceConnector > tasks.max=1 > connection.url=jdbc:mysql://192.168.1.10:3306/sandbox?user=bubesh&password=bubesh21 > query=SELECT * from temp1 > mode=incrementing > incrementing.column.name=c1 > topic.prefix=mysql-test-topic1 -- This message was sent by Atlassian JIRA (v6.4.14#64029)