久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <tfoot id='e8hxJ'></tfoot>

    <small id='e8hxJ'></small><noframes id='e8hxJ'>

    1. <legend id='e8hxJ'><style id='e8hxJ'><dir id='e8hxJ'><q id='e8hxJ'></q></dir></style></legend>

      • <bdo id='e8hxJ'></bdo><ul id='e8hxJ'></ul>
      <i id='e8hxJ'><tr id='e8hxJ'><dt id='e8hxJ'><q id='e8hxJ'><span id='e8hxJ'><b id='e8hxJ'><form id='e8hxJ'><ins id='e8hxJ'></ins><ul id='e8hxJ'></ul><sub id='e8hxJ'></sub></form><legend id='e8hxJ'></legend><bdo id='e8hxJ'><pre id='e8hxJ'><center id='e8hxJ'></center></pre></bdo></b><th id='e8hxJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='e8hxJ'><tfoot id='e8hxJ'></tfoot><dl id='e8hxJ'><fieldset id='e8hxJ'></fieldset></dl></div>

      Kafka JDBC 源連接器時(shí)間戳模式對(duì) sqlite3 失敗

      Kafka JDBC source connector time stamp mode failing for sqlite3(Kafka JDBC 源連接器時(shí)間戳模式對(duì) sqlite3 失敗)
          <tbody id='dBZaq'></tbody>

      1. <small id='dBZaq'></small><noframes id='dBZaq'>

          • <i id='dBZaq'><tr id='dBZaq'><dt id='dBZaq'><q id='dBZaq'><span id='dBZaq'><b id='dBZaq'><form id='dBZaq'><ins id='dBZaq'></ins><ul id='dBZaq'></ul><sub id='dBZaq'></sub></form><legend id='dBZaq'></legend><bdo id='dBZaq'><pre id='dBZaq'><center id='dBZaq'></center></pre></bdo></b><th id='dBZaq'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dBZaq'><tfoot id='dBZaq'></tfoot><dl id='dBZaq'><fieldset id='dBZaq'></fieldset></dl></div>
          • <legend id='dBZaq'><style id='dBZaq'><dir id='dBZaq'><q id='dBZaq'></q></dir></style></legend>

              <bdo id='dBZaq'></bdo><ul id='dBZaq'></ul>
              <tfoot id='dBZaq'></tfoot>

                本文介紹了Kafka JDBC 源連接器時(shí)間戳模式對(duì) sqlite3 失敗的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我試圖在 sqlite 中建立一個(gè)包含兩個(gè)表的數(shù)據(jù)庫.我的一個(gè)表有一個(gè)時(shí)間戳列.我正在嘗試實(shí)施時(shí)間戳模式來捕獲數(shù)據(jù)庫中的增量更改.Kafka 連接失敗并出現(xiàn)以下錯(cuò)誤:

                I tried to set up a database with two tables in sqlite. Once of my table is having a timestamp column . I am trying to implement timestamp mode to capture incremental changes in the DB. Kafka connect is failing with the below error:

                 ERROR Failed to get current time from DB using Sqlite and query 'SELECT 
                CURRENT_TIMESTAMP' 
                (io.confluent.connect.jdbc.dialect.SqliteDatabaseDialect:471)
                java.sql.SQLException: Error parsing time stamp
                
                Caused by: java.text.ParseException: Unparseable date: "2019-02-05 02:05:29" 
                does not match (\p{Nd}++)\Q-\E(\p{Nd}++)\Q-\E(\p{Nd}++)\Q 
                \E(\p{Nd}++)\Q:\E(\p{Nd}++)\Q:\E(\p{Nd}++)\Q.\E(\p{Nd}++)
                

                非常感謝您的幫助

                配置:

                name=test-query-sqlite-jdbc-autoincrement 
                connector.class=io.confluent.connect.jdbc.JdbcSourceConnector 
                tasks.max=1 
                connection.url=jdbc:sqlite:employee.db 
                query=SELECT users.id, users.name, transactions.timestamp, transactions.payment_type FROM users JOIN transactions ON (users.id = transactions.user_id) 
                mode=timestamp 
                timestamp.column.name=timestamp 
                topic.prefix=test-joined
                

                DDL:

                CREATE TABLE transactions(id integer primary key not null,
                                          payment_type text not null,
                                          timestamp DATETIME DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),
                                          user_id int not null, 
                                          constraint fk foreign key(user_id) references users(id)
                ); 
                
                CREATE TABLE users (id integer primary key not null,name text not null);
                

                推薦答案

                kafka connect jdbc 連接器很容易檢測(cè)到時(shí)間戳的變化,如果 'timestamp' 列的值是 'UNIX timestamp' 的格式.

                The kafka connect jdbc connector easily detects the changes in the timestamp, if the values of the 'timestamp' column are in the format of the 'UNIX timestamp'.

                sqlite> CREATE TABLE transact(timestamp TIMESTAMP DEFAULT (STRFTIME('%s', 'now')) not null,
                   ...> id integer primary key not null,
                   ...> payment_type text not null);
                sqlite>
                

                值可以插入為:

                sqlite> INSERT INTO transact(timestamp,payment_type,id) VALUES (STRFTIME('%s', 'now'),'cash',1);
                

                然后由 kafka jdbc 源連接器檢測(cè)與時(shí)間戳相關(guān)的更改,并且可以按如下方式使用:

                The timestamp related changes are then detected by the kafka jdbc source connector and the same can be consumed as follows:

                kafka-console-consumer  --bootstrap-server localhost:9092 --topic jdbc-transact --from-beginning
                {"timestamp":1562321516,"id":2,"payment_type":"card"}
                {"timestamp":1562321790,"id":1,"payment_type":"online"}
                

                這篇關(guān)于Kafka JDBC 源連接器時(shí)間戳模式對(duì) sqlite3 失敗的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Connect to SQLite in Apache Spark(在 Apache Spark 中連接到 SQLite)
                Issue with Confluent JDBC Source connector(Confluent JDBC Source 連接器的問題)
                Why Kafka jdbc connect insert data as BLOB instead of varchar(為什么 Kafka jdbc 將插入數(shù)據(jù)作為 BLOB 而不是 varchar 連接)
                kafka-connect-jdbc : SQLException: No suitable driver only when using distributed mode(kafka-connect-jdbc:SQLException:僅在使用分布式模式時(shí)沒有合適的驅(qū)動(dòng)程序)
                kafka-connect-jdbc : SQLException: No suitable driver only when using distributed mode(kafka-connect-jdbc:SQLException:僅在使用分布式模式時(shí)沒有合適的驅(qū)動(dòng)程序)
                Efficient ways for whitelisting more tables in Debezium Mysql Connector(在 Debezium Mysql Connector 中將更多表列入白名單的有效方法)
                    <tbody id='vX6c3'></tbody>
                  • <bdo id='vX6c3'></bdo><ul id='vX6c3'></ul>
                    <tfoot id='vX6c3'></tfoot>

                    <small id='vX6c3'></small><noframes id='vX6c3'>

                      <i id='vX6c3'><tr id='vX6c3'><dt id='vX6c3'><q id='vX6c3'><span id='vX6c3'><b id='vX6c3'><form id='vX6c3'><ins id='vX6c3'></ins><ul id='vX6c3'></ul><sub id='vX6c3'></sub></form><legend id='vX6c3'></legend><bdo id='vX6c3'><pre id='vX6c3'><center id='vX6c3'></center></pre></bdo></b><th id='vX6c3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vX6c3'><tfoot id='vX6c3'></tfoot><dl id='vX6c3'><fieldset id='vX6c3'></fieldset></dl></div>
                          <legend id='vX6c3'><style id='vX6c3'><dir id='vX6c3'><q id='vX6c3'></q></dir></style></legend>
                          主站蜘蛛池模板: 中文字幕 在线观看 | 国产精品福利在线 | 羞羞视频网 | 精品国产第一区二区三区 | 日本精品一区二区 | 91.色 | 亚洲精品在线播放 | 一区二区视频在线 | 免费视频一区二区三区在线观看 | 久久久不卡网国产精品一区 | 欧美一级黑人aaaaaaa做受 | 91精品久久久久久久久久 | 岛国午夜 | 精品日韩在线 | 欧美中文一区 | 中文字幕一区二区三区不卡在线 | 三区四区在线观看 | 国产成人精品高清久久 | 99精品欧美一区二区蜜桃免费 | 欧美理论在线观看 | www.99久久.com| 国产精品一区二区在线 | 精品一区二区三区在线视频 | 天天操 夜夜操 | 国产精品精品视频一区二区三区 | 免费黄色a级毛片 | 91在线色视频 | 日韩免费av网站 | 日韩 欧美 综合 | 91在线视频在线观看 | 日韩在线观看一区 | 日韩精品在线观看免费 | 日本一区二区高清不卡 | 色毛片 | 久久中文网| 亚洲欧美日韩中文字幕一区二区三区 | 狠狠入ady亚洲精品经典电影 | 日韩在线视频一区 | 日韩精品久久久久 | 欧美性成人 | 91免费看片神器 |