nifi中清空 Queue
来源:互联网 发布:淘宝your highness 编辑:程序博客网 时间:2024/06/09 21:50
参考:https://kisstechdocs.wordpress.com/2015/01/15/simple-tasks-in-nifi-clearing-a-queue/
Clearing a Queue
A common question that new users of Apache NiFi (incubating) have is how to clear out a queue of FlowFiles that has built up in a connection. Sometimes your dataflow doesn’t work as you expected, and data starts to build up in a queue. The answer to this question depends on whether you care about the data that is in the queue. If not, see the first scenario below. If so, see the second scenario.
Scenario 1
If you are merely setting up a new dataflow and have “test data” running through it that you don’t care about, then here is a simple solution:
- Stop both processors on either side of the connection.
- Right-click on the connection and select Configure.
- On the Settings tab of the Configure Connection window, change the FlowFile expiration setting from 0 sec to 1 sec.
This will cause all the FlowFiles in the queue to expire and be removed from the dataflow. You may find that you need to restart the processors to see the files clear out of the queue. But often, you just need to right-click on a blank space in the graph and select “Refresh status” to see the queue update.
NOTE: Be sure to change the setting back to 0 sec before running data through your flow again!
Scenario 2
If you do care about the data in the queue and you don’t want to lose it, there is also a way to deal with that scenario. It may or may not provide a solution to what is causing your dataflow to fail, but it will give you a way to move the data elsewhere in any case:
- Stop both processors on either side of the connection.
- Left-click on the connection so that it is selected.
- You will notice that source-side of the connection has a small red box, and the destination side has a small blue box.
- You may click and drag the blue box to move that end of the connection to another processor.
- Perhaps you will want to try sending the data to a new copy of the processor where the data was building up, but with a different configuration — to see if that solves the problem. Alternatively, you can at least send the data to a PutFile processor to copy the data off into a local error directory. This could allow you to troubleshoot an issue with the data itself before trying to send it back through the flow.
- nifi中清空 Queue
- Nifi
- nifi -- cluster
- nifi -- ssl
- nifi-搭建
- Nifi初探
- Nifi初探
- NIFI简介
- NIFI概览
- NIFI术语
- apache Nifi 概述
- Apache Nifi 开发
- nifi学习资源
- nifi实例集合:
- NiFi源码整理
- Nifi -- standalone安装
- Apache nifi 实例
- Nifi开发01
- 正则表达式
- Gradle基础
- 2016春网易前端暑期实习生笔试面经
- 初识SSH框架
- AOP 那点事儿
- nifi中清空 Queue
- linux私房菜学习笔记—vim编辑器
- hdu 1392(求凸包周长)
- 灵活式的collectionview的header
- 能PIN通对方,对方却ping不通本机的问题
- iOS 延迟执行的方法总结
- 后缀数组倍增算法代码及解释
- Ubuntu解决MyEclipse/Eclipse Ctrl+Alt+Up/Down无法使用的问题
- Redis----sorted set数据类型操作