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 70810200C15 for ; Wed, 8 Feb 2017 10:49:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6F12C160B5A; Wed, 8 Feb 2017 09:49:17 +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 479C3160B4E for ; Wed, 8 Feb 2017 10:49:16 +0100 (CET) Received: (qmail 76719 invoked by uid 500); 8 Feb 2017 09:49:15 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 76709 invoked by uid 99); 8 Feb 2017 09:49:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2017 09:49:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D350AC0C5C for ; Wed, 8 Feb 2017 09:49:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.992 X-Spam-Level: X-Spam-Status: No, score=0.992 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.onmicrosoft.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id pkUSd2m7bm2w for ; Wed, 8 Feb 2017 09:49:12 +0000 (UTC) Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 09E915F24C for ; Wed, 8 Feb 2017 09:49:12 +0000 (UTC) X-AuditID: c1b4fb2d-fb9fc980000059d1-09-589ae994c46d Received: from ESESSHC018.ericsson.se (Unknown_Domain [153.88.183.72]) by (Symantec Mail Security) with SMTP id 42.30.22993.499EA985; Wed, 8 Feb 2017 10:49:09 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (153.88.183.145) by oa.msg.ericsson.com (153.88.183.72) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 8 Feb 2017 10:48:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.onmicrosoft.com; s=selector1-ericsson-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tig7sldQpOdT+jOso7OHDBpbrHxy0qFwqlhX9QU/lDQ=; b=IQJ8VfskF+SogJN1VGQbWsaVMwpRvZ5MPKxf7RHe4X58xWOc7P1N6M+AWrNZ3maV+sk8fl5ibe+LDcP6MU5rjy8XEUfy+YDul/NNQ2WGd2f6zme5awNATs+YDcpOm/E0cRj3DhkS8dTEZjprPKV9f0EBYB0fF/fe9zR3uJy4UTw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=punit.tandel@ericsson.com; Received: from [159.107.166.224] (83.70.152.179) by DB6PR0701MB2247.eurprd07.prod.outlook.com (10.168.58.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5; Wed, 8 Feb 2017 09:48:57 +0000 Subject: Re: To get Schema for jdbc database in Flink To: References: <032a37f1-8e91-c58e-eba6-f44d4d7133c9@ericsson.com> <978b13bd-abb7-3954-710f-a48c11aaff93@ericsson.com> <589AD528.7000206@apache.org> From: Punit Tandel Organization: Ericsson AB Message-ID: Date: Wed, 8 Feb 2017 09:48:54 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <589AD528.7000206@apache.org> Content-Type: multipart/alternative; boundary="------------0C3ACB767B66BDD188E5E11C" X-Originating-IP: [83.70.152.179] X-ClientProxiedBy: DB5PR08CA0070.eurprd08.prod.outlook.com (10.166.166.166) To DB6PR0701MB2247.eurprd07.prod.outlook.com (10.168.58.148) X-MS-Office365-Filtering-Correlation-Id: 717a2265-4102-4d26-4132-08d45007b3b0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DB6PR0701MB2247; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0701MB2247;3:P/YWRt9KCOB0Xy3Rk+3qsBjW6OW06i85DiVZVFE/65m2iNGLviPXQGeeSzV4aHrc6/ZyWuj8vh4GBG1EYA1Po6F2MNz0HmJur0qoGo52RbW0pF56xBje0Lh1CyOzuHjslbTt5XOKftrNjP91o06s1Ue7wXnZLpkajFbyK946LQJdxJygvBhG+ncOeuQfXDvHFBO7U+Bae9zdq0bJJvRYsNZp0d1f34tR1X8JY+S8cudF6ENQC+3V1Vub719sdGL1W+BavSGIfk6GyoljzsLSEA==;25:LauCc5xa3yypOABgSH6vBXfhOzHNe77r8sGASe6ecaLJ+YksgcANzP23KVD426ezZIHPLVs7q/InutMEfnBQkrCeQ7a3gY+1D5Xt+bzZn+fyoNmAz6mpll9pQsGEAooKgOF+uW8UwHe2npFduUig4vFlNJYB1XGbou4VVHb9CIG001n+9QQzzrcEH0ExFRfKnKcv57p/uuIwAJgnoy6pXZ3SO54n+4JZHy9tuaaeuHnKhtQsYvdx/C9CyjjXxlRLSFY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antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(37575265505322); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(20170203043)(2017020702029)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123558025)(20161123555025)(20161123560025)(6072148);SRVR:DB6PR0701MB2247;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0701MB2247; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0701MB2247;4:+xc9337fYpfxt1cL7DlpksLveqjEGNdpZIG9QJFHOoht8aj2I2t4gVEC1yYmetFLh4aNp36bWDtObm2qtdgTfNWoJycFMMAmHMM1qHVoDeycdiuEdgvEQ6DbArsY09sUPxpEHugfdpc+uM53VQ24ZwcEC3FA4mjNe9+89GryGlcqoJ8OClHiPT7/V0sXO5nrpKZjy34IEHwBugl6bUoXiIHZA+UURj1Hjg1nL7mpuX05b/i81lLPUDaBYs8ZPm4wB/KxqsY27tXKqnhOPwOR3gJELDG7/Gq++Elf6W49qEpfvp0ek8NSxHc/6NPDiO0Hmw3+CL160YaNDTGeosRvm8Ii1L6xqU1iL4l2yBVy+j6GKFT8LCaGsgVJ5vZJFIzwWPPnchrNh4L6RMuvWUXU/Bmqb658U+CMtJn1+28CioVhaikTN4zrxCAkx5tWwU391oH/dAq4DlHelWJGJS08aRpxy6IR6mSQjOSkmY8zRqxJ/W/WEo6aV2dphm/3XrG1VYfuP0lSrTb1ceq8SOl1ea7ltfuCLIm9b34BSQyhGF2nuL4BigufGP0qkgtAeY4bOMuMOYhWLsi+6vALhJXOKLb2DGWhacmHBwNY6DInwi8moB+5sifJkCXVfnO1XjOz6xrhc9resuQq04f+OLFWB+u5s6goM5kHuSxYsGlkE+I7mVhtvOP/z1T1ptijiBGvVlCzxGtbGZZdwrlo7LC+lQ== X-Forefront-PRVS: 0212BDE3BE X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6049001)(7916002)(39450400003)(51914003)(377454003)(24454002)(189002)(199003)(42186005)(84326002)(93886004)(106356001)(270700001)(31696002)(2351001)(6666003)(2950100002)(6916009)(92566002)(83506001)(64126003)(4001350100001)(6116002)(189998001)(33646002)(97736004)(3846002)(5660300001)(65826007)(65806001)(65956001)(66066001)(68736007)(105586002)(50986999)(31686004)(76176999)(36756003)(81166006)(81156014)(54356999)(25786008)(53936002)(606005)(8676002)(512874002)(2906002)(236005)(54896002)(6306002)(966004)(110136004)(86362001)(7906003)(229853002)(7736002)(101416001)(38730400002)(6486002)(90366009)(450100001)(6246003)(53546003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0701MB2247;H:[159.107.166.224];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DB6PR0701MB2247;23:FSriOVqujgDuiBcFsNcqMV+T9TQV/RUbQgFPI1F?= =?us-ascii?Q?Hpi1nkZY7zmGWtZO2Ns55tAnCuR7kFAYiuX7SEZyF6QTNqMGpoNAkKQ53+PP?= =?us-ascii?Q?dBopUj7h986ZTqIjVXICBotCJo6lVI3CZvrUKjZr/SaZ7fXZZV5DeMqZaqJW?= =?us-ascii?Q?YGuJWl1MzdS/ZlYQY+aUPGs0ymiPZx0Q9v3CSfCeUXKw+Xf9JS2/0fQ7DDEs?= =?us-ascii?Q?0PKB/ypGTWvOMZmG7C10CpXg+taBViB0bIja/LECQAVP3iPOgaxEEHc4xsml?= =?us-ascii?Q?GNYQ2dL1efWJ04FmjtPEuP+uxsMM9h6IpxwAocqA/70PsLZmmx+EybjY74L+?= =?us-ascii?Q?92v0EfKOV8byl7uDwkRI2inoDxzNdN6HuAD50wfnxxjj6Bc83GzFYgFB57Fm?= =?us-ascii?Q?7bk1BvUCZkLonM5Qm41UG8PufPJQiFFwka36wzJpTH7RgNyqPyjGX3RlGxA2?= =?us-ascii?Q?leXc9fnaX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?= =?us-ascii?Q?TfO2CEJGpzKUrtqwRelL2Ghpnj47+IF9ofPJnevn2x4LrmXu3Ix0JKfG5cWt?= =?us-ascii?Q?IK0HyRErL1lCsFYbVUi7QL5FxJBL+J7LHODvdDWt+NfNGsIRjBrW51b1B1DW?= =?us-ascii?Q?0Wnn1o2VgnRnhS8xGj3jgsT4n7FCgO4tPGMc=3D?= X-Microsoft-Exchange-Diagnostics: 1;DB6PR0701MB2247;6:5ygPjVEJCJ2OmGH2O9jYb+xdGvBBXw2I6AGXI0xSjh4uh2eQFeNpZ35+c2eakGrSa91581AyrVQWmVTJH3ivtwqVX+ncDteRoq3zIe8f4qRKn7xP2Y+eSdgIMZKWdk8l2zEDVVq/b98AXDCroY34QouGmjReX1n5jpqn3hvaCtc7or4n2Y6hfDsxVrZF9DvR60kZRkVamIJP4ztDIac1amNNj1cpTZmJkpOUTpUl0RTvsasmzN9fKLOc9BqA9MxhuY5qsy6ezFTgrsnu4Z2Rlw//GXGPH9TL38Ky6lSSWDJ6CVyG2iVe+AAK4MxweS9lgzw8RRIM0HeD6/2nHuRyU6bOs2qTf/4p52t23hDnoQHGlOvlR2k7GVK4Woso0YCLsgfLCCh9GaQB/sojOEf18w==;5:Je0FGOF835cgY0SIMClAomSFG/GJ61tUfH34P4M6WoGwwaNrte+JYQbscbm6b+ptZnFjojchWdneRHYOH6KsMKNiLKVTSl4IoOXZctafSV1DhI8fwLqPhMBPOWedJ6jiQV5Aewp1iTgxBTvAadCc1UjuXA4nkbCAeBu7nLKRd7Y=;24:CMuaulgWStSjtSaQzvJAO811wkj8T7v9BgQG8WIvF9I1vUBRZd2XOS7JKaA870c3hRRHk8gWVYWBnwno+B8vDjmeeVzoKlb8uKg4WEnr3Ak= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB6PR0701MB2247;7:1o4hf+IE/yxXq6TP7gin/YILJcnQziQLCNKsZrrwJu0hN2hZxPzSXbwwQOxYwOmjbvokhDRIJJckkuMxc+CFXFVqXpb4V+0rZoiWp8khwX5v7JHtkL2W6nCN1JGpWv+KOGJNmqoEN5g46379/fcc68MTgI4FZ3AuXwFy2JwdyFSJwESRMFCLlSXNXKmtlvVHhhMFhzxCS5YOeXLWbJh85Xbw46MBdfStR6aUA/epBaWSZ5+BhkBHMy9ZT6uclZovHczzTX0eb35EhucjqMsx/bpk1NXcgBW7ADHw27W1EBTPv7E7NAA54S57H0QXDwEuZ0AA5T/YmNJxuANIj38UbkMbhB7Ztdcwku4DRS+o2NQOAyAvq48hZ7VUvW7wW8LdiUQvW9yQYQS/QgS/KGaYPd6UYvI/TiOTR5C/1bS5pkvDIXslRAzxACu0Q7BzTonUy23P/qcElteVXJ40Zgvkx1UQVrzNj91egIZd5eifOZ4p1sm2jr/feoOTlu7A0kuoDbGPRzQR5KdoVMGA/BUS9g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2017 09:48:57.5298 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB2247 X-OriginatorOrg: ericsson.com X-Brightmail-Tracker: H4sIAAAAAAAAA02SbUhTURjHO7t31+t0eJyaTxqYI8oUp5aaRWQRxL6I9SUtCx15UUk32TVJ Ixjqgs0yyxd0KGalOV/nG0rpopGpEIZhooRNU9EcFkImakTeHQO//Z7z/z0c/ofDUrIKsR+b oc7htGpVppyR0NWJfcrQiu+mxPDSbSrmUcMkdQ4pB0deokvomuRMKpeZkctpw86mSNL1xnEm e/3inQHdVR16Hm5ELAs4El7MpxiRhJXhdgRND9oZI3LdGYYRjC2ECAGNH1IwsPVTJAQIXwdz 66gL2dCJoEg/7NzwwlEwYJ9EAntjfyidnkBEmhbBxNpjFyFgsAIaS+edkgc+ABbda0pgKY4F a02b06HxYRj6NUML7IMToW6xWUQcTxitXnCeu+JgmCyoEAtM4StQYq11MuBAGNLPioWLARsR bAxWikmfI7BqWhERKQ4Mbcti0j8eSr4cJX4zAzM9qy5kWGKgt9hKkwUNFJQ3IcKnwbG1gYj0 SgTWtXGGDCUM1Bs+7VoHodfiEJHAzMD9H0W778pBz1TR7sZvD9C9rxCXoiDTnoKmPaUIx0B1 3UdEOAD6VmsowkGgr6l1IRwCjfUO6ilimpEPz/F8VtrxEwpOm3GT5zVqhZrL6UI7n+Vtz3Zo P2pxnLchzCK5u9RiMCXKxKpcPi/LhoCl5N7Sk8s7R9JUVV4+p9Uka29ncrwN+bO03FcabbYn yHCaKoe7xXHZnPZ/KmJd/XQoia1q3Vx8k1ZlVwRqkmn3U3d1tVPRHV4l9pW5jqDPH+I9lSOR oyldhjVb+abH1/1h3oZDgRcikv9Yl30K17tbnliriwtmo8pka89UAfHfGgbGsjvdzF5/lb5J 0UuFecpj6qmWG2MQ/05vidgXaoyrzE/o953r7nSLhTLNvcsJcppPV0UEU1pe9Q/pSE2bKAMA AA== archived-at: Wed, 08 Feb 2017 09:49:17 -0000 --------------0C3ACB767B66BDD188E5E11C Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Hi Chesnay Currently that is what i have done, reading the schema from database in order to create a new table in jdbc database and writing the rows coming from jdbcinputformat. Overall i am trying to implement the solution which reads the streaming data from one source which either could be coming from kafka, Jdbc, Hive, Hdfs and writing those streaming data to output source which is again could be any of those. For a simple use case i have just taken one scenario using jdbc in and jdbc out, Since the jdbc input source returns the datastream of Row and to write them into jdbc database we have to create a table which requires schema. Thanks Punit On 02/08/2017 08:22 AM, Chesnay Schepler wrote: > Hello, > > I don't understand why you explicitly need the schema since the batch > JDBCInput-/Outputformats don't require it. > That's kind of the nice thing about Rows. > > Would be cool if you could tell us what you're planning to do with the > schema :) > > In any case, to get the schema within the plan then you will have to > query the DB and build it yourself. Note that this > is executed on the client. > > Regards, > Chesnay > > On 08.02.2017 00:39, Punit Tandel wrote: >> >> Hi Robert >> >> Thanks for the response, So in near future release of the flink >> version , is this functionality going to be implemented ? >> >> Thanks >> >> On 02/07/2017 04:12 PM, Robert Metzger wrote: >>> Currently, there is no streaming JDBC connector. >>> Check out this thread from last year: >>> http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/JDBC-Streaming-Connector-td10508.html >>> >>> >>> >>> On Mon, Feb 6, 2017 at 5:00 PM, Ufuk Celebi >> > wrote: >>> >>> I'm not sure how well this works for the streaming API. Looping in >>> Chesnay, who worked on this. >>> >>> On Mon, Feb 6, 2017 at 11:09 AM, Punit Tandel >>> wrote: >>> > Hi , >>> > >>> > I was looking into flink streaming api and trying to implement >>> the solution >>> > for reading the data from jdbc database and writing them to >>> jdbc databse >>> > again. >>> > >>> > At the moment i can see the datastream is returning Row from >>> the database. >>> > dataStream.getType().getGenericParameters() retuning an empty >>> list of >>> > collection. >>> > >>> > I am right now manually creating a database connection and >>> getting the >>> > schema from ResultMetadata and constructing the schema for the >>> table which >>> > is a bit heavy operation. >>> > >>> > So is there any other way to get the schema for the table in >>> order to create >>> > a new table and write those records in the database ? >>> > >>> > Please let me know >>> > >>> > Thanks >>> > Punit >>> >>> >> > --------------0C3ACB767B66BDD188E5E11C Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hi Chesnay

Currently that is what i have done, reading the schema from database in order to create a new table in jdbc database and writing the rows coming from jdbcinputformat.

Overall i am trying to implement the solution which reads the streaming data from one source which either could be coming from kafka, Jdbc, Hive, Hdfs and writing those streaming data to output source which is again could be any of those.

For a simple use case i have just taken one scenario using jdbc in and jdbc out, Since the jdbc input source returns the datastream of Row and to write them into jdbc database we have to create a table which requires schema.

Thanks
Punit



On 02/08/2017 08:22 AM, Chesnay Schepler wrote:
Hello,

I don't understand why you explicitly need the schema since the batch JDBCInput-/Outputformats don't require it.
That's kind of the nice thing about Rows.

Would be cool if you could tell us what you're planning to do with the schema :)

In any case, to get the schema within the plan then you will have to query the DB and build it yourself. Note that this
is executed on the client.

Regards,
Chesnay

On 08.02.2017 00:39, Punit Tandel wrote:

Hi Robert

Thanks for the response, So in near future release of the flink version , is this functionality going to be implemented ?

Thanks

On 02/07/2017 04:12 PM, Robert Metzger wrote:
Currently, there is no streaming JDBC connector.

On Mon, Feb 6, 2017 at 5:00 PM, Ufuk Celebi <uce@ap= ache.org> wrote:
I'm not sure how well this works for the streaming API. Looping in
Chesnay, who worked on this.

On Mon, Feb 6, 2017 at 11:09 AM, Punit Tandel <punit.tan= del@ericsson.com> wrote:
> Hi ,
>
> I was looking into flink streaming api and trying to implement the solution
> for reading the data from jdbc database and writing them to jdbc databse
> again.
>
> At the moment i can see the datastream is returning Row from the database.
> dataStream.getType().getGenericParameters()= retuning an empty list of
> collection.
>
> I am right now manually creating a database connection and getting the
> schema from ResultMetadata and constructing the schema for the table which
> is a bit heavy operation.
>
> So is there any other way to get the schema for the table in order to create
> a new table and write those records in the database ?
>
> Please let me know
>
> Thanks
> Punit




--------------0C3ACB767B66BDD188E5E11C--