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

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

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

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

          <bdo id='xHrib'></bdo><ul id='xHrib'></ul>

        Flowfile 絕對(duì)路徑 Nifi

        Flowfile absolute path Nifi(Flowfile 絕對(duì)路徑 Nifi)

          <bdo id='Gkefc'></bdo><ul id='Gkefc'></ul>

            <tfoot id='Gkefc'></tfoot>
            <legend id='Gkefc'><style id='Gkefc'><dir id='Gkefc'><q id='Gkefc'></q></dir></style></legend>
              <tbody id='Gkefc'></tbody>

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

                • <i id='Gkefc'><tr id='Gkefc'><dt id='Gkefc'><q id='Gkefc'><span id='Gkefc'><b id='Gkefc'><form id='Gkefc'><ins id='Gkefc'></ins><ul id='Gkefc'></ul><sub id='Gkefc'></sub></form><legend id='Gkefc'></legend><bdo id='Gkefc'><pre id='Gkefc'><center id='Gkefc'></center></pre></bdo></b><th id='Gkefc'></th></span></q></dt></tr></i><div class="zv32738" id='Gkefc'><tfoot id='Gkefc'></tfoot><dl id='Gkefc'><fieldset id='Gkefc'></fieldset></dl></div>
                  本文介紹了Flowfile 絕對(duì)路徑 Nifi的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我正在嘗試使用批量加載選項(xiàng)將流文件加載到 MySQL 數(shù)據(jù)庫(kù)中.下面是我在 UpdateAttribute 處理器中使用的查詢,并在更新參數(shù)以執(zhí)行批量加載后將該查詢傳遞給 PutSQL.

                  LOAD DATA INFILE '${absolute.path}${filename}' INTO TABLE ${dest.database}.${db.table.name} FIELDS TERMINATED BY ', LINES TERMINATED BY '\n'

                  當(dāng)我運(yùn)行流程時(shí),它沒(méi)有說(shuō)文件未找到異常.

                  <預(yù)><代碼>.總共有1個(gè)FlowFiles失敗,0個(gè)成功,0個(gè)沒(méi)有執(zhí)行,將被路由重試;:java.sql.BatchUpdateException:無(wú)法為L(zhǎng)OAD DATA INFILE"命令打開(kāi)文件data.csv".由于底層IOException:`** 開(kāi)始嵌套異常 **java.io.FileNotFoundException消息:data.csv(沒(méi)有那個(gè)文件或目錄)java.io.FileNotFoundException: data.csv(沒(méi)有這樣的文件或目錄).

                  這里 MySQL 服務(wù)器和 Nifi 在不同的節(jié)點(diǎn)上,所以我不能使用 LOAD DATA LOCAL INFILE 查詢.

                  即使我在 SQL 查詢中提到了流文件的完整絕對(duì)路徑,我也不知道為什么會(huì)出現(xiàn)文件未找到異常.

                  當(dāng)我使用帶有硬編碼文件名的查詢并在 nifi 節(jié)點(diǎn)中提供文件的絕對(duì)路徑時(shí),它按預(yù)期工作.

                  工作:

                  LOAD DATA LOCAL INFILE '/path/in/nifi/node/to/file/data.csv' INTO TABLE ${dest.database}.${db.table.name} FIELDS TERMINATED BY ',' 以 '\n'} 結(jié)尾的行

                  問(wèn)題是如何獲取流文件的絕對(duì)路徑并將相同的流文件加載到mysql中.

                  流程:

                  解決方案

                  • 停止 PutSQL 處理器并讓流文件排隊(duì).
                  • 一旦他們排隊(duì),右鍵單擊success關(guān)系
                    UpdateAttributePutSQL 之間并選擇 List Queue.
                  • 選擇任意一個(gè)流文件并導(dǎo)航到 Attributes 選項(xiàng)卡并查看如果屬性absolute.pathflowfilename 存在并且如果
                    它們確實(shí)存在,請(qǐng)驗(yàn)證它們是否具有預(yù)期值集.在你的情況下 absolute.path 應(yīng)該有值 /path/in/nifi/node/to/fileflowfilename 應(yīng)該有值 <代碼>/data.csv

                  問(wèn)題:您是否使用 UpdateAttribute 自己設(shè)置這些屬性,原因是,NiFi 不會(huì)生成名為 flowfilename 的屬性,而是生成名為 <代碼>文件名.

                  還有一點(diǎn),請(qǐng)確保 absolute.path 的值以 / 結(jié)尾或 flowfilename 的值開(kāi)始帶有 /.如果沒(méi)有,它們將被附加,結(jié)果將是 /path/in/nifi/node/to/filedata.csv.您可以嘗試@Mahendra 建議的 append 函數(shù),否則您可以簡(jiǎn)單地使用 ${absolute.path}/${flowfilename}.

                  更新

                  我剛剛意識(shí)到absolute.path 是一個(gè)核心屬性,如filenamefilesizemime.type等.有些處理器使用所有核心屬性,而有些處理器使用很少的必要屬性.GenerateTableFetch 寫入 absolute.path 但沒(méi)有為它設(shè)置任何東西.這就是為什么它有 ./ 這是默認(rèn)值.

                  所以我對(duì)您的工作方法的建議是,您可以使用 UpdateAttribute 手動(dòng)設(shè)置/覆蓋 absolute.path 屬性(就像您覆蓋了 filename) 并設(shè)置所需的值,即 /path/in/nifi/node/to/file

                  I'm trying to load the flow files into MySQL database using bulk load option. Below is the query I'm using as part of the UpdateAttribute processor and passing that query to PutSQL after updating the parameters to do bulk load.

                  LOAD DATA INFILE '${absolute.path}${filename}' INTO TABLE ${dest.database}.${db.table.name} FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'
                  

                  When I ran the flow it's failing saying file not found exception.

                  . There were a total of 1 FlowFiles that failed, 0 that succeeded, and 0 that were not execute and will be routed to retry; : java.sql.BatchUpdateException: Unable to open file 'data.csv'for 'LOAD DATA INFILE command.Due to underlying IOException:`
                  
                  ** BEGIN NESTED EXCEPTION ** 
                  
                  java.io.FileNotFoundException
                  MESSAGE: data.csv (No such file or directory)
                  java.io.FileNotFoundException: data.csv (No such file or directory).
                  

                  Here MySQL Server and Nifi are on different nodes so I can't use LOAD DATA LOCAL INFILE query.

                  I'm not sure why I'm getting file not found exception even though I mentioned the complete absolute path of the flow file in the SQL Query.

                  When I use query with hard coded file name and providing the absolute path of the file in nifi node, it's working as expected.

                  Working:

                  LOAD DATA LOCAL INFILE '/path/in/nifi/node/to/file/data.csv' INTO TABLE ${dest.database}.${db.table.name} FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'}
                  

                  Question is how to get the absolute path of the flow file and load the same flow file into mysql.

                  Flow:

                  解決方案

                  • Stop the PutSQL processor and let the flowfiles queue up.
                  • Once they are queued up, right click on the success relationship
                    between UpdateAttribute and PutSQL and select List Queue.
                  • Select any one flowfile and navigate to the Attributes tab and see if the attributes absolute.path and flowfilename exists and if
                    they do exist, verify if they have the expected value set. In your case absolute.path should have the value /path/in/nifi/node/to/file and flowfilename should have the value /data.csv

                  Question for you: Are you setting these attributes yourself using UpdateAttribute, reason is, NiFi doesn't generate an attribute named flowfilename, it generates one with the name filename.

                  One more thing, make sure either the value for absolute.path ends with a / in the end or the value of flowfilename begins with a /. If not, they will be appended and the result will be /path/in/nifi/node/to/filedata.csv. You can try the append function that @Mahendra suggested, else you can simply use ${absolute.path}/${flowfilename}.

                  Update

                  I just realized that absolute.path is a core attribute like filename, filesize, mime.type, etc. Some processors use all the core attributes while some use very few which are needed. GenerateTableFetch writes absolute.path but doesn't set anything for it. That's why it has ./ which is the default value.

                  So my suggestion for your approach to work is, you can manually set/overwrite absolute.path attribute using UpdateAttribute (just like you have overwritten filename) and set the desired value which is /path/in/nifi/node/to/file

                  這篇關(guān)于Flowfile 絕對(duì)路徑 Nifi的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

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

                            主站蜘蛛池模板: 游动电流仪-流通式浊度分析仪-杰普仪器(上海)有限公司 | 编织人生 - 权威手工编织网站,编织爱好者学习毛衣编织的门户网站,织毛衣就上编织人生网-编织人生 | 香港新时代国际美容美发化妆美甲培训学校-26年培训经验,值得信赖! | 炉门刀边腹板,焦化设备配件,焦化焦炉设备_沧州瑞创机械制造有限公司 | 行业分析:提及郑州火车站附近真有 特殊按摩 ?2025实地踩坑指南 新手如何避坑不踩雷 | 药品冷藏箱厂家_低温冰箱_洁净工作台-济南欧莱博电子商务有限公司官网 | 臭氧灭菌箱-油桶加热箱-原料桶加热融化烘箱-南京腾阳干燥设备厂 臭氧发生器_臭氧消毒机 - 【同林品牌 实力厂家】 | PAS糖原染色-CBA流式多因子-明胶酶谱MMP-上海研谨生物科技有限公司 | 淋巴细胞分离液_口腔医疗器材-精欣华医疗器械(无锡)有限公司 | 菲希尔FISCHER测厚仪-铁素体检测仪-上海吉馨实业发展有限公司 | ASA膜,ASA共挤料,篷布色母料-青岛未来化学有限公司 | 螺旋叶片_螺旋叶片成型机_绞龙叶片_莱州源泽机械制造有限公司 | 西安烟道厂家_排气道厂家_包立管厂家「陕西西安」推荐西安天宇烟道 | FFU_空气初效|中效|高效过滤器_空调过滤网-广州梓净净化设备有限公司 | 数显恒温培养摇床-卧式/台式恒温培养摇床|朗越仪器 | nalgene洗瓶,nalgene量筒,nalgene窄口瓶,nalgene放水口大瓶,浙江省nalgene代理-杭州雷琪实验器材有限公司 | 小程序开发公司-小程序制作-微信小程序开发-小程序定制-咏熠软件 | 碳刷_刷握_集电环_恒压簧_电刷厂家-上海丹臻机电科技有限公司 | 杭州门窗厂家_阳光房_包阳台安装电话-杭州窗猫铝合金门窗 | 阻燃剂-氢氧化镁-氢氧化铝-沥青阻燃剂-合肥皖燃新材料 | 广州番禺搬家公司_天河黄埔搬家公司_企业工厂搬迁_日式搬家_广州搬家公司_厚道搬迁搬家公司 | 大连海岛旅游网>>大连旅游,大连海岛游,旅游景点攻略,海岛旅游官网 | 石家庄小程序开发_小程序开发公司_APP开发_网站制作-石家庄乘航网络科技有限公司 | 温控器生产厂家-提供温度开关/热保护器定制与批发-惠州市华恺威电子科技有限公司 | 旅游规划_旅游策划_乡村旅游规划_景区规划设计_旅游规划设计公司-北京绿道联合旅游规划设计有限公司 | 美国HASKEL增压泵-伊莱科elettrotec流量开关-上海方未机械设备有限公司 | 钣金加工厂家-钣金加工-佛山钣金厂-月汇好 | 医养体检包_公卫随访箱_慢病随访包_家签随访包_随访一体机-济南易享医疗科技有限公司 | 海尔生物医疗四川代理商,海尔低温冰箱四川销售-成都壹科医疗器械有限公司 | 武汉不干胶印刷_标签设计印刷_不干胶标签印刷厂 - 武汉不干胶标签印刷厂家 | 蓝米云-专注于高性价比香港/美国VPS云服务器及海外公益型免费虚拟主机 | 交通信号灯生产厂家_红绿灯厂家_电子警察监控杆_标志杆厂家-沃霖电子科技 | 澳门精准正版免费大全,2025新澳门全年免费,新澳天天开奖免费资料大全最新,新澳2025今晚开奖资料,新澳马今天最快最新图库-首页-东莞市傲马网络科技有限公司 | 全自动端子机|刺破式端子压接机|全自动双头沾锡机|全自动插胶壳端子机-东莞市傅氏兄弟机械设备有限公司 | 桐城新闻网—桐城市融媒体中心主办| Copeland/谷轮压缩机,谷轮半封闭压缩机,谷轮涡旋压缩机,型号规格,技术参数,尺寸图片,价格经销商 CTP磁天平|小电容测量仪|阴阳极极化_双液系沸点测定仪|dsj电渗实验装置-南京桑力电子设备厂 | 无锡装修装潢公司,口碑好的装饰装修公司-无锡索美装饰设计工程有限公司 | 液氮罐(生物液氮罐)百科-无锡爱思科| 尾轮组_头轮组_矿用刮板_厢式刮板机_铸石刮板机厂家-双驰机械 | 东莞螺杆空压机_永磁变频空压机_节能空压机_空压机工厂批发_深圳螺杆空压机_广州螺杆空压机_东莞空压机_空压机批发_东莞空压机工厂批发_东莞市文颖设备科技有限公司 | 水压力传感器_数字压力传感器|佛山一众传感仪器有限公司|首页 |