久久久久久久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ù)庫(kù).我的一個(gè)表有一個(gè)時(shí)間戳列.我正在嘗試實(shí)施時(shí)間戳模式來捕獲數(shù)據(jù)庫(kù)中的增量更改.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>
                          主站蜘蛛池模板: 中文字幕免费视频 | 亚洲精品成人在线 | 国产精品视频500部 a久久 | 在线日韩 | 久久久久久亚洲精品 | 最新黄色在线观看 | 天天色官网| 国产在线观看 | 日韩欧美一区在线 | 亚洲免费在线 | 九一视频在线播放 | 精品国产乱码久久久久久88av | 国产精品久久欧美久久一区 | 午夜精品一区 | 欧美天堂| 一区二区免费看 | 在线观看免费av网 | 玖玖玖在线观看 | 欧美一区二区黄 | 日韩天堂av | 日韩成人在线电影 | 天天操天天摸天天干 | 国产精品久久久久一区二区三区 | 精品一区二区三区免费视频 | 日操夜操 | 在线观看免费福利 | 狠狠色网 | 中文字幕国产精品 | 一级全黄视频 | 99精品在线| 国产在线中文字幕 | 在线观看成人 | 欧美激情国产精品 | 国产小视频在线 | 狠狠躁夜夜躁人人爽天天高潮 | 国产精品久久国产精品 | 中文字幕 在线观看 | 久久成人精品 | 国产在线不卡视频 | 99久久精品一区二区成人 | 国产免费视频在线 |