pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <bdo id='UQCDb'></bdo><ul id='UQCDb'></ul>
  • <i id='UQCDb'><tr id='UQCDb'><dt id='UQCDb'><q id='UQCDb'><span id='UQCDb'><b id='UQCDb'><form id='UQCDb'><ins id='UQCDb'></ins><ul id='UQCDb'></ul><sub id='UQCDb'></sub></form><legend id='UQCDb'></legend><bdo id='UQCDb'><pre id='UQCDb'><center id='UQCDb'></center></pre></bdo></b><th id='UQCDb'></th></span></q></dt></tr></i><div class="sogesww" id='UQCDb'><tfoot id='UQCDb'></tfoot><dl id='UQCDb'><fieldset id='UQCDb'></fieldset></dl></div>
    1. <small id='UQCDb'></small><noframes id='UQCDb'>

        <tfoot id='UQCDb'></tfoot>

      1. <legend id='UQCDb'><style id='UQCDb'><dir id='UQCDb'><q id='UQCDb'></q></dir></style></legend>
      2. putSql處理器后executeSql失敗

        executeSql failing after putSql processor(putSql處理器后executeSql失敗)
        <legend id='Dx4O4'><style id='Dx4O4'><dir id='Dx4O4'><q id='Dx4O4'></q></dir></style></legend>

          • <tfoot id='Dx4O4'></tfoot>
            • <bdo id='Dx4O4'></bdo><ul id='Dx4O4'></ul>

                <tbody id='Dx4O4'></tbody>

            • <small id='Dx4O4'></small><noframes id='Dx4O4'>

              1. <i id='Dx4O4'><tr id='Dx4O4'><dt id='Dx4O4'><q id='Dx4O4'><span id='Dx4O4'><b id='Dx4O4'><form id='Dx4O4'><ins id='Dx4O4'></ins><ul id='Dx4O4'></ul><sub id='Dx4O4'></sub></form><legend id='Dx4O4'></legend><bdo id='Dx4O4'><pre id='Dx4O4'><center id='Dx4O4'></center></pre></bdo></b><th id='Dx4O4'></th></span></q></dt></tr></i><div class="ygm2ea2" id='Dx4O4'><tfoot id='Dx4O4'></tfoot><dl id='Dx4O4'><fieldset id='Dx4O4'></fieldset></dl></div>

                  本文介紹了putSql處理器后executeSql失敗的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我的用例是查詢一組表的一組數據并將其插入到一個表中.所以我的 nifi 處理器基本上是這樣的:

                  my use case is to query a set of data for bunch of table and insert it into one table. so my nifi processor basically is like this:

                  executeSql(查詢數據集) >>> convertAvrotoJson >>>> convetJSONtoSQL(轉換為插入語句) >>>> putSQL (插入語句) >>> executeSQL(刪除與第一個處理器查詢相關的行表)

                  executeSql(query set of dataset) >>> convertAvrotoJson >>>> convetJSONtoSQL(convert to insert statement) >>>> putSQL (insert statement) >>> executeSQL(delete a row associated with first processor query in set of table)

                  問題出在最后一個 executeSQL 處理器中,當它沒有執行我的 sql 時,它一直試圖運行 putSQL 查詢.

                  the problem is in the last executeSQL processor, when its not executing my sql, instead it keep trying to run putSQL query.

                  為了測試(這是在executeSQL中),我只用一個普通的選擇替換了我的刪除查詢:

                  i replace my delete query with just a normal select for the sake of testing (this is in the executeSQL) :

                  這是 executeSQL 的數據來源,我們可以清楚地看到它仍在嘗試執行來自 putSQL 的插入語句,即使我已經指定只執行查詢:

                  and this is the data provenance for executeSQL, we can clearly see its still trying to execute the insert statement coming from putSQL even i already specified to just do a query:

                  這是錯誤,錯誤清楚地表明我沒有提供參數,而我顯然不希望它執行插入語句:

                  and this is the error, the error clearly say i didnt provide parameter when im clearly dont want it to execute an insert statement:

                  如何在表 A 中成功插入記錄后在表 B 上執行刪除語句?請幫助我堅持這一點.請不要與圖像混淆,因為我只是用普通選擇測試它以確保 nifi 可以正確執行我的查詢.我使用的是 mysql 5.7

                  how to execute a delete statement on table B after i successfully insert a record in Table A? please help as im stuck at this. please dont get confuse with the image, as im just testing it with normal select to ensure that nifi can execute my query correctly. im using mysql 5.7

                  推薦答案

                  如果流文件上有 sql.args 屬性,則 ExecuteSQL 將嘗試使用它們用參數填充 PreparedStatement.這是因為指定的查詢(無論是通過流文件正文還是通過 SQL 選擇查詢 屬性傳入)可以具有 ? 參數,由流文件屬性填充.對于上面的流程,您可以在 PutSQL 和 ExecuteSQL 之間放置一個 UpdateAttribute 處理器,將 Delete Attributes Expression 屬性設置為 sql\.args\..* 或其他內容,以刪除參數.

                  If there are sql.args attributes on the flow file, ExecuteSQL will attempt to use them to populate a PreparedStatement with parameters. This is because the specified query (whether coming in via the flowfile body or the SQL select query property) can have ? parameters, to be filled in by the flow file attributes. For your flow above, you could put an UpdateAttribute processor between the PutSQL and ExecuteSQL, setting the Delete Attributes Expression property to sql\.args\..* or something, to remove the parameters.

                  話雖如此,我建議您將整個流程替換為 ExecuteSQL -> PutDatabaseRecord -> ExecuteSQL.這繞過了轉換邏輯,SQL 生成/執行在內部完成(因此不需要 sql.args 屬性).

                  Having said that, I recommend you replace your whole flow with ExecuteSQL -> PutDatabaseRecord -> ExecuteSQL. This bypasses the conversion logic and the SQL generation/execution is done internally (so no need for sql.args attributes).

                  這篇關于putSql處理器后executeSql失敗的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數根據 N 個先前值來決定接下來的 N 個行)
                  reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結果;條款?)
                  Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數的 ignore 選項是忽略整個事務還是只是有問題的行?) - IT屋-程序員軟件開發技
                  Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環數組)
                  pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調用 o23.load 時發生錯誤 沒有合適的驅動程序)
                  How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數據庫表作為 Spark 數據幀讀取?)
                    <tbody id='Hwc1j'></tbody>

                    <legend id='Hwc1j'><style id='Hwc1j'><dir id='Hwc1j'><q id='Hwc1j'></q></dir></style></legend><tfoot id='Hwc1j'></tfoot>

                      • <small id='Hwc1j'></small><noframes id='Hwc1j'>

                      • <i id='Hwc1j'><tr id='Hwc1j'><dt id='Hwc1j'><q id='Hwc1j'><span id='Hwc1j'><b id='Hwc1j'><form id='Hwc1j'><ins id='Hwc1j'></ins><ul id='Hwc1j'></ul><sub id='Hwc1j'></sub></form><legend id='Hwc1j'></legend><bdo id='Hwc1j'><pre id='Hwc1j'><center id='Hwc1j'></center></pre></bdo></b><th id='Hwc1j'></th></span></q></dt></tr></i><div class="qsyqaq2" id='Hwc1j'><tfoot id='Hwc1j'></tfoot><dl id='Hwc1j'><fieldset id='Hwc1j'></fieldset></dl></div>
                          <bdo id='Hwc1j'></bdo><ul id='Hwc1j'></ul>
                          1. 主站蜘蛛池模板: 卓能JOINTLEAN端子连接器厂家-专业提供PCB接线端子|轨道式端子|重载连接器|欧式连接器等电气连接产品和服务 | 超声波分散机-均质机-萃取仪-超声波涂料分散设备-杭州精浩 | NBA直播_NBA直播免费观看直播在线_NBA直播免费高清无插件在线观看-24直播网 | 薄壁轴承-等截面薄壁轴承生产厂家-洛阳薄壁精密轴承有限公司 | 涡街流量计_LUGB智能管道式高温防爆蒸汽温压补偿计量表-江苏凯铭仪表有限公司 | 飞利浦LED体育场灯具-吸顶式油站灯-飞利浦LED罩棚灯-佛山嘉耀照明有限公司 | 南京种植牙医院【官方挂号】_南京治疗种植牙医院那个好_南京看种植牙哪里好_南京茀莱堡口腔医院 尼龙PA610树脂,尼龙PA612树脂,尼龙PA1010树脂,透明尼龙-谷骐科技【官网】 | 微波萃取合成仪-电热消解器价格-北京安合美诚科学仪器有限公司 | 净化车间_洁净厂房_净化公司_净化厂房_无尘室工程_洁净工程装修|改造|施工-深圳净化公司 | 浙江富广阀门有限公司 | 气体热式流量计-定量控制流量计(空气流量计厂家)-湖北南控仪表科技有限公司 | 阴离子_阳离子聚丙烯酰胺厂家_聚合氯化铝价格_水处理絮凝剂_巩义市江源净水材料有限公司 | 河南不锈钢水箱_地埋水箱_镀锌板水箱_消防水箱厂家-河南联固供水设备有限公司 | 滑板场地施工_极限运动场地设计_滑板公园建造_盐城天人极限运动场地建设有限公司 | 成都热收缩包装机_袖口式膜包机_高速塑封机价格_全自动封切机器_大型套膜机厂家 | 钢丝绳探伤仪-钢丝绳检测仪-钢丝绳探伤设备-洛阳泰斯特探伤技术有限公司 | 雷达液位计_超声波风速风向仪_雨量传感器_辐射传感器-山东风途物联网 | 检验科改造施工_DSA手术室净化_导管室装修_成都特殊科室建设厂家_医疗净化工程公司_四川华锐 | 美国HASKEL增压泵-伊莱科elettrotec流量开关-上海方未机械设备有限公司 | 小型气象站_便携式自动气象站_校园气象站-竞道气象设备网 | 东莞市踏板石餐饮管理有限公司_正宗桂林米粉_正宗桂林米粉加盟_桂林米粉加盟费-东莞市棒子桂林米粉 | 危废处理系统,水泥厂DCS集散控制系统,石灰窑设备自动化控制系统-淄博正展工控设备 | 台湾阳明固态继电器-奥托尼克斯光电传感器-接近开关-温控器-光纤传感器-编码器一级代理商江苏用之宜电气 | 聚合甘油__盐城市飞龙油脂有限公司 | 岩棉板|岩棉复合板|聚氨酯夹芯板|岩棉夹芯板|彩钢夹芯板-江苏恒海钢结构 | 分类168信息网 - 分类信息网 免费发布与查询 | 安徽华耐泵阀有限公司-官方网站| Trimos测长机_测高仪_TESA_mahr,WYLER水平仪,PWB对刀仪-德瑞华测量技术(苏州)有限公司 | 陕西安玻璃自动感应门-自动重叠门-磁悬浮平开门厂家【捷申达门业】 | 碳纤维复合材料制品生产定制工厂订制厂家-凯夫拉凯芙拉碳纤维手机壳套-碳纤维雪茄盒外壳套-深圳市润大世纪新材料科技有限公司 | 排烟防火阀-消防排烟风机-正压送风口-厂家-价格-哪家好-德州鑫港旺通风设备有限公司 | 全温度恒温培养摇床-大容量-立式-远红外二氧化碳培养箱|南荣百科 | 流变仪-热分析联用仪-热膨胀仪厂家-耐驰科学仪器商贸 | 撕碎机,撕破机,双轴破碎机-大件垃圾破碎机厂家 | 煤矿支护网片_矿用勾花菱形网_缝管式_管缝式锚杆-邯郸市永年区志涛工矿配件有限公司 | 济南铝方通-济南铝方通价格-济南方通厂家-山东鲁方通建材有限公司 | TTCMS自助建站_网站建设_自助建站_免费网站_免费建站_天天向上旗下品牌 | 国产频谱分析仪-国产网络分析仪-上海坚融实业有限公司 | 干粉砂浆设备-干粉砂浆生产线-干混-石膏-保温砂浆设备生产线-腻子粉设备厂家-国恒机械 | 滑石粉,滑石粉厂家,超细滑石粉-莱州圣凯滑石有限公司 | 阜阳在线-阜阳综合门户 |