TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Apache NiFi

279 pointsby boredgamer2about 5 years ago

38 comments

cs02rm0about 5 years ago
I&#x27;ve used it a fair bit, though not for a couple of years. Few points, some of which may be out of date:<p>* I&#x27;ve seen customers fall into the trap of thinking they don&#x27;t need expensive developers because you can drag and drop, just people who can use a mouse can crack on with NiFi.<p>* It persisted its config to an XML file, including the positions of boxes on the UI. Trying to keep this config in source control with multiple devs working on it was impossible.<p>* Some people take the view that you should use &#x27;native&#x27; NiFi processors and not custom code. This results in huge graphs of processors with 1000s of boxes with lines between you have to follow. Made both better and worse by being able to descend and ascend levels in the graph. The complexity that way quickly becomes insane.<p>* You&#x27;re essentially programming with it. I&#x27;ve no doubt you could use it to write, say, an XMPP server if so inclined. Which means you can do a great many things of huge complexity. Programming tools have developed models for inheritance and composition, abstraction, static analysis, etc. which NiFi just didn&#x27;t have. The amount of repeated logic I&#x27;ve seen it&#x27;s configuration accumulate is beyond anything I&#x27;ve seen from any novice programmer.<p>I ended up feeling like it could be an OK choice in a very small number of places, but I never got to work on one of those. The NSA linking together multiple systems with a light touch is possibly one such use case. For most everyone else, I couldn&#x27;t recommend it.
评论 #23146012 未加载
评论 #23149143 未加载
评论 #23147441 未加载
评论 #23146023 未加载
评论 #23150952 未加载
评论 #23150019 未加载
_57jbabout 5 years ago
We used NiFi...one of the worst experiences.<p>It installs like an appliance and feels like you are grappling with a legacy tool weighed down by a classic view on architecture and maintenance.<p>We had built a data pipeline and it was for very high-scale data. The theory of it was very much like a TIBCO type approach around data-pipelines.<p>Sadly the reality was also like a TIBCO type approach around data-pipelines.<p>One persons experience and opinion and I am super jaded by it due to some vendor cramming it down one of our directors throats who subsequently crammed it down ours when we warned how it would turn out. It ended up being a very leaky and obtuse abstraction that didn&#x27;t belong in our data-pipeline when you planned how it was maintained longer-term.<p>I ultimately left that company. It had to do with as much of their leadership and tooling dictation as anything else, NiFi was one of many pains. I am sure there are places that are using NiFi who will never outgrow the tool so take it with a grain of salt.<p>Said company ultimately struggled for the very reasons those of us who left were predicting (the tooling pipeline was a mess and was thrashing on trying to get it right, constantly breaking by forcing this solution, along with others, into the flow. Lots of finger-pointing).<p>Sucks to have that: &quot;I told you so...&quot; moment when you never wanted that outcome for them....I just couldn&#x27;t be a part of their spiral anymore.
评论 #23145871 未加载
评论 #23147533 未加载
评论 #23146436 未加载
评论 #23146267 未加载
评论 #23146596 未加载
gopalvabout 5 years ago
NiFi&#x27;s biggest strength is that it is a 2-way system - it is not Storm, it is not Flink, it is not Kafka, it is not SQS+Lambda.<p>I like to think of it like Scribe from FB, but with an extremely dynamic configuration protocol.<p>The places where it really shines is where you can&#x27;t get away with those 3 and the problem is actually something that needs a system which can back-pressure and modify flows all the way to the source - it is a spiderweb data collection tool.<p>So someone trying to Complex Event Processing workflows or time-range join operations with it, will probably succeed at the small scale, but start pulling their hair out at the 5-10GB&#x2F;s rate.<p>So its real utility is in that it deploys outside your DC, not inside it.<p>This is the Site-to-Site functionality and MiniFI is the smallest chunk of it, which can be shrunk into a simple C++ something you can deploy it in every physical location (say warehouse or grocery store).<p>The actually useful part of that is the SDLC cycle for NiFi, which lets you push updates to a flow. So you might want to start with a low granularity parsing of your payment logs on the remote side as you start, but you can switch your attention over it to &amp; remove sampling on the fly if you want.<p>If you&#x27;re an airline flying over the arctic, you might have an airline rated MiniFI box on board which is sending low traffic until a central controller pushes a &quot;give me more info on fuel rates&quot;.<p>Or a cold chain warehouse which is monitoring temperature on average, until you notice spikes and ask for granular data to compare to power fluctuations.<p>It is a data extraction &amp; collection tool, not a processing and reporting tool (though it can do that, it is still a tool for bringing data after extraction&#x2F;sampling, not enrichment).
monstradoabout 5 years ago
Incredible piece of software. I&#x27;ve used it in production at my last two jobs. You can build almost anything in NiFi once you get into the mindset of how it works.<p>A good way to get started with NiFi is to use it as a highly available quartz-cron scheduler. For example, running &quot;some process&quot; every 5 seconds.<p>Disclaimer: I&#x27;m an Apache NiFi committer.<p>An article you might find interesting about it&#x27;s ability to scale.<p><a href="https:&#x2F;&#x2F;blog.cloudera.com&#x2F;benchmarking-nifi-performance-and-scalability&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudera.com&#x2F;benchmarking-nifi-performance-and-...</a><p>Disclaimer v2: I used to work at Cloudera
评论 #23146819 未加载
评论 #23150060 未加载
taftsterabout 5 years ago
NiFi at first glance sometimes just looks like a glorified GUI for building out a data-delivery application. But NiFi doesn&#x27;t just compile an application to be deployed on your network. Instead, the &quot;power&quot; of NiFi is that it allows an operations staff to perform the regular day-in-day-out task of monitoring, regulating and if needed modifying the delivery of data to an enterprise.<p>NiFi gives insight to your enterprise data streams in a way that allows &quot;active&quot; dataflow management. If a system is down, NiFi allows dataflow operations to make changes and deal with problems directly, right at tier 1 support.<p>It&#x27;s often the case that an enterprise software developer has an ongoing role of ensuring the healthy state of the applications from their team. They don&#x27;t just develop, they are frequently on call and must ensure that data is flowing properly. NiFi helps decouple those roles, so that the operations of dataflow can be actively managed by a dedicated support team that is more tightly integrated with the &quot;mission&quot; of their dataflow.<p>NiFi additionally offers some features that most programmers skip to help with the resiliency of the application. For example:<p>- the concept of &quot;back pressure&quot; is baked into NiFi. This helps ensure that downstreams systems don&#x27;t get overrun by data, allowing NiFi to send upstream signals to slow or buffer the stream.<p>- data provenance, the ability to see where every piece of data in the system originated and was delivered (the pedigree of the data). Includes the ability to &quot;replay&quot; data as needed.<p>- dynamic routing, allowing a dataflow operator to actively manage a stream, splicing it, or stopping delivery to one source and delivering to another. Sources and Sinks can be temporarily stopped and queued data placed into another route. Representational forms can be changed (csv -&gt; xml -&gt; json, avro), and even schemas can be changed based on stream.<p>Anyone can write a shell script that uses curl to connect with a data source, piping to grep&#x2F;sed&#x2F;awk and sending to a database. NiFi is more about visualizing that dataflow, seeing it in real-time, and making adjustments to it as needed. It also helps answer the &quot;what happens when things go wrong&quot; question, the ability to back-off if under contention, or replay in case of failure.<p>(disclaimer: affiliated with NiFi)
banjoriverabout 5 years ago
NiFi is vey good at reliably moving data at very high volumes, low latency, with a large number of mature integrations, in a way that allows for fine grained tuning, and i&#x27;ve seen first hand that it is very scalable. It&#x27;s internal architecture is very principled: <a href="https:&#x2F;&#x2F;nifi.apache.org&#x2F;docs&#x2F;nifi-docs&#x2F;html&#x2F;nifi-in-depth.html" rel="nofollow">https:&#x2F;&#x2F;nifi.apache.org&#x2F;docs&#x2F;nifi-docs&#x2F;html&#x2F;nifi-in-depth.ht...</a><p>Out of the box it is incredibly powerful and easy to use; in particular it&#x27;s data provenance, monitoring, queueing, and back pressure capabilities are hard to match; custom solution would take extensive dev to even come close to the features.<p>It is not code, and that means it is resistant to code based tooling. For years it&#x27;s critical weakness was related to migrating flows between environments, but this has been mostly resolved. If you are in a place with dev teams and separate ops teams, and lots of process required to make prod changes, then this was problematic.<p>However, the GUI flow programming is insanely powerful and is ideal when you need to do rapid prototyping, or quickly adapt existing pipelines; this same power and flexibility means that you can shoot yourself in the foot. As others have said, this is not a tool for non technical people; you need to understand systems, resource management, and the principles of scaling high volume distributed workloads.<p>This flow based visual approach makes understanding what is happening easier for someone coming later. I&#x27;ve seen a solution that required a dozen containers of redis, two multiple programming languages, zookeeper, a custom gui, and and mediocre operational visibility, be migrated to a simple nifi flow that was 10 connected squares in a row. The complexity of the custom solution, even though it was very stable and had nice code quality, meant that that solution became a legacy debt quickly after it was deployed. Now that same data flow is much easier to understand, and has great operational monitoring.<p>Some suggestions: - limit NiFi&#x27;s scope to data routing and movement, and avoid data transformations or ETL in the flow. This ensures you can scale to your network limits, and aren&#x27;t cpu&#x2F;memory bound by the transformation of content. - constrain the scope of each instance of nifi, and not deploy 100s of flows onto a single cluster. - you can do alot with a single node, only go to a cluster for HA and when you know you need the scale.
unixheroabout 5 years ago
Phew! Happy to have read the comments here. They say a lot. I will go with Apache Airflow for all my workflow needs from now on. I wasn&#x27;t entirely sure if this was the best bet, but after seeing all of this I am now.<p>I know a massive installation [0] which is about to be open sourced, where Apache NIFI is used in the middle of the stack as a key component. No dismissal of the capabilities this package offers intended.<p>[0] <a href="https:&#x2F;&#x2F;sikkerhetsfestivalen.no&#x2F;bidrag2019&#x2F;138" rel="nofollow">https:&#x2F;&#x2F;sikkerhetsfestivalen.no&#x2F;bidrag2019&#x2F;138</a><p>slides [slide #32]: <a href="https:&#x2F;&#x2F;static1.squarespace.com&#x2F;static&#x2F;5c2f61585b409bfa28a47010&#x2F;t&#x2F;5d76acacbff92a46b71dfdba&#x2F;1568058561846&#x2F;ELK-i-solnedgang.pdf" rel="nofollow">https:&#x2F;&#x2F;static1.squarespace.com&#x2F;static&#x2F;5c2f61585b409bfa28a47...</a>
pacofvfabout 5 years ago
For the love of god, don&#x27;t use NiFi to trigger an Airflow DAG.
评论 #23145826 未加载
yawzabout 5 years ago
If you&#x27;re considering Apache NiFi, you should also look at Apache Airflow and Uber Cadence to decide what model would work best for you.
评论 #23151364 未加载
corndogeabout 5 years ago
Can someone explain what this is? I can&#x27;t find anything on the website that explains it
评论 #23145278 未加载
评论 #23145849 未加载
评论 #23145140 未加载
评论 #23145570 未加载
评论 #23145247 未加载
rfslivaabout 5 years ago
We are using NiFi as our dataflow engine for real time data ingest. We are using a current version, 1.11.4, and have several instances running including a development instance. The interface provides our team the ability to do quick iterative development and testing. An example of one of our use cases is we have 2 dataflows that ingest data from 2 different vehicle location&#x2F;status systems and pump them into SQL Server. At the same time another dataflow merges the data from SQL Server and sends the data to Azure Event Hub. These dataflows were easy to setup, test and extend. This replaced a process that was written in Go.
endlessmike89about 5 years ago
Nifi is a good (not great) tool, mostly because of all of the functionality you get out of the box. It comes with almost any kind of connector you would need for moving data. There&#x27;s a pretty steep learning curve, but once you push through that, creating a new data flow from scratch is quick and easy. It sucks that other people in this thread have had bad experiences with Nifi, and I can&#x27;t say that I haven&#x27;t. However, it has generally been a positive addition to my team&#x27;s stack.
haddrabout 5 years ago
Had some second hand opinions on running NiFi in prod and all of them were rather negative, some saying it was a mistake. That was around one year ago. I wonder if things have changed since then.
sixhobbitsabout 5 years ago
I have never heard of this before, and I&#x27;m sad that profit-driven, marketing speak has taken over even non-profit product pages.<p>&gt; An easy to use, powerful, and reliable system.<p>This is the title. That&#x27;s the most important sentence, and it&#x27;s absolutely meaningless.<p>It&#x27;s bad enough that everything has to &quot;sell&quot; - just describe to me what your product does and I&#x27;ll decide if I need or not. Don&#x27;t try to convince me.<p>If you have to sell, do it by differentiating yourself from your competitors. No one is calling themselves &quot;Difficult to use, weak, and unreliable&quot;, so saying the opposite is not differentiation.<p>When did we accept that marketing-speak was default communication. Can&#x27;t we have some landing pages that are essays? Or even a few paragraphs instead of trying-to-be-catchy bullet point phrases in large font?
评论 #23147852 未加载
pazoabout 5 years ago
I have experience from multiple projects with NiFi and it was the main reason for me and others quitting the company. Somehow management were convinced by some salesmen that this would be the golden bullet, however, all of their deliveries were delayed. We experienced issues debugging flows with performance problems, and even basic version control was problematic due to ids being replaced every time.
josephmosbyabout 5 years ago
NiFi is a fantastic tool for a certain set of organizational constraints.<p>* It doesn&#x27;t need much in the way of dependencies to run. If you can get Java onto a machine, you can probably get NiFi to run on that machine. - That is HUGE if you are operating in an environment where getting any new dependencies installed on a machine is an operational nightmare.<p>* It doesn&#x27;t require a lot of overhead. Specifically, no database.<p>* You can write components for it that don&#x27;t require a whole lot of tweaking for small changes to the incoming data. So, if I have a machine processing a JSON file that looks like XXYX and another machine processing a nearly identical JSON file that looks like XYXX, the tweaks can be made pretty easily.<p>So, if you&#x27;re looking for a lightweight, low overhead, easily configurable tool that may be running in an environment where you&#x27;ve got to run lots of little instances that are mostly similar but not quite, NiFi is great.<p>If you are running a centralized data pipeline where you have a dedicated team of data engineers to keep the data flowing, there are better options out there.
tspannabout 5 years ago
No more XML. Check out NiFi 1.11.4, it does everything you need for easy ingest. If you are reading some files putting them into Kafka or S3 or a database or MongoDB or Hbase or Hive or Impala or Oracle or Kudu or ..., it&#x27;s genius.<p><a href="https:&#x2F;&#x2F;www.datainmotion.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.datainmotion.dev&#x2F;</a>
评论 #23148219 未加载
Sodmanabout 5 years ago
Having used NiFi in production, my biggest issue with it is handling source control and multiple environments. As the &quot;IDE&quot; is effectively also the runtime, the lines between &quot;local&quot;, &quot;stage&quot;, and &quot;prod&quot; are easy to blur.<p>They have a built-in source control product called &quot;NiFi Registry&quot;, which can even be backed by git. The workflow for promoting flows between environments feels clunky though, especially as so much environment-specific configuration is required once your number of components gets high enough.<p>Moving our Java, Ruby or Go code between environments or handling versioning and releases was a piece of cake, in comparison.
tomrodabout 5 years ago
Do I understand what this is: general purposes SSIS-type data integration, pipeline, and workflow tool?<p>If so, how does it compare to SSIS, dbt, and other projects (please name!)?<p>Otherwise, what is an analogous toolset?
benjaminwoottonabout 5 years ago
I have been working on a new product which competes with NiFi, providing streaming data transformations.<p>Think, if order value &gt; 100 and the customer has ordered 3 times in the last hour and the product will be in stock tomorrow.<p>Kafka streams, Flink and Dataflow are super powerful and I think there is room for a GUI tool.<p>Would be great to hear experiences of NiFi in this domain or discuss the space with any experienced users. Will add contact details in my profile.
评论 #23145941 未加载
kentosiabout 5 years ago
For those who were around during the mid-2000s, is this basically another revival of SOA (Service Oriented Architecture)?<p>I watched one of the explanation videos and it brought back memories.<p>My dislike of the phase back then, which I hope they&#x27;ve addressed now, is that while everything looked find and dandy while designing things on a UI, when something broke it was a whole heaps of generated XML no one could read.
jszymborskiabout 5 years ago
So, the comments here have mostly ranged between neutral to negative regarding their experience.<p>I have a problem where I want to stream data to an ML layer and then stream that to a web app (e.g. Laravel or Django).<p>Reading the docs here, this seems like this would solve this problem, but was wondering if people had alternatives given that people seem to think poorly of this application.
评论 #23145804 未加载
评论 #23145757 未加载
aasasdabout 5 years ago
So Apache has at least a handful of software packages that do about the same thing, but with different interfaces and connectivity?
评论 #23147624 未加载
ibishvintilliabout 5 years ago
I like the way how it buffers messages. You basically stop a process and it will continue when it left off. It is easy to create a distributed cluster. It has hundreds of different connectors for external sources. On the other hand is very bulky. Making it to work with https was horrible. You cannot just put it behind a reverse proxy.
dikeiabout 5 years ago
We only use NiFi on the edge of our data lake. It&#x27;s very good at bulk loading, pulling log files&#x2F;sensor data from hundreds of systems into our systems.<p>However, it does not handle small records well, and deploying custom processors is a pain, so don&#x27;t use it to replace your stream processing framework.
gatorbait83about 5 years ago
Our team found this adapter to integrate ML with NiFI pretty handy: <a href="https:&#x2F;&#x2F;dev.to&#x2F;tspannhw&#x2F;easy-deep-learning-in-apache-nifi-with-djl-2d79" rel="nofollow">https:&#x2F;&#x2F;dev.to&#x2F;tspannhw&#x2F;easy-deep-learning-in-apache-nifi-wi...</a>
评论 #23145987 未加载
takedaabout 5 years ago
It reminds me of LONI Pipeline[1], which was created for the need of a neuroscience lab to process images of brain scans.<p>[1] <a href="http:&#x2F;&#x2F;pipeline.loni.usc.edu&#x2F;" rel="nofollow">http:&#x2F;&#x2F;pipeline.loni.usc.edu&#x2F;</a>
onetrickwolfabout 5 years ago
I am new to this site, why is there just a link to Apache NiFI on the front page? Is this somehow news? Sorry not trying to be rude just confuses me a bit since NiFi has been around for some time.
评论 #23146642 未加载
throwawayseaabout 5 years ago
Is this an open source self hosted equivalent to <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;datapipeline&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;datapipeline&#x2F;</a>?
评论 #23146338 未加载
fmakunboundabout 5 years ago
Reminds me of the early 2000s when we were all into BPM, graphical or otherwise. The drawbacks are pretty obvious. I bet the engineers who built it had fun, tho.
评论 #23150997 未加载
yaloginabout 5 years ago
For someone not involved in the web stack, reading through that page tells me nothing. Can someone tell me what use cases this is meant to solve?
评论 #23148956 未加载
dmtroyerabout 5 years ago
Has anyone replaced Mirth with NiFi for HL7 slinging?
hestefiskabout 5 years ago
Does NiFi still use XML output for its source code? It makes it very hard to put under source control. Overall it’s a nice tool and very fast.
meh206about 5 years ago
Our devs hated it due to ease of accidental flow fsck ups. And good luck scaling it or trying to put it behind an LB!
iofiiiiiiiiiabout 5 years ago
&gt; An easy to use, powerful, and reliable system to process and distribute data.<p>But what is it?
century19about 5 years ago
Brought to you by the NSA ;-)
评论 #23147618 未加载
J0_k3rabout 5 years ago
inb4 this shit gets bloated to hell like apache httpd
mberningabout 5 years ago
We have a team using this at work. They had built a process and needed it to be put on a VM and run periodically. They said the requirements were a dual core machine and 8gb of ram. The “binary” was like 1.8gb. I’m sure it included a jre and a full nifi runtime, but god damn that is ridiculous. Had this process been built using go or crystal or something like that it probably would have been less than a megabyte and able to run with 512mb of ram.
评论 #23146646 未加载
评论 #23150834 未加载
评论 #23145460 未加载
评论 #23145269 未加载
评论 #23145243 未加载