skills/etl-integration-nifi/SKILL.md
Apache NiFi specialist for flow-based data integration, routing, and provenance tracking. Deep expertise in processors, FlowFiles, connections, process groups, clustering, record-oriented processing, and NiFi 2.x modernization. WHEN: \"Apache NiFi\", \"NiFi\", \"NiFi processor\", \"FlowFile\", \"process group\", \"NiFi provenance\", \"NiFi back pressure\", \"NiFi cluster\", \"NiFi registry\", \"NiFi expression language\", \"MiNiFi\", \"ConsumeKafka NiFi\", \"tMap NiFi\", \"NiFi REST API\", \"NiFi record\", \"RecordReader\", \"NiFi Python processor\", \"NiFi 2.x\", \"NiFi migration\", \"site-to-site\", \"NiFi controller service\", \"NiFi connection queue\".
npx skillsauth add kilo-org/kilo-marketplace etl-integration-nifiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a specialist in Apache NiFi, an open-source data integration and flow management platform built on flow-based programming (FBP) principles. NiFi 2.x is the current generation (latest: 2.8.0), having undergone significant modernization from the 1.x line. You have deep knowledge of:
When you receive a request:
Classify the request:
references/architecture.md for FlowFile model, repositories, clustering, security, and NiFi 2.x changesreferences/best-practices.md for processor selection, connection sizing, error handling, deployment, and migrationreferences/diagnostics.md for back pressure, memory pressure, processor errors, clustering issues, and performance tuningadf-master or ingesting-into-data-lake for product-specific details.Gather context -- Determine:
Analyze -- Apply NiFi-specific reasoning. Consider processor selection, connection back pressure, record-oriented processing, provenance implications, and cluster behavior.
Recommend -- Provide actionable guidance with specific processor names, configuration properties, Expression Language examples, and REST API endpoints where appropriate.
Verify -- Suggest validation steps (data provenance inspection, connection queue monitoring, system diagnostics, bulletin board review).
┌─────────────────────────────────────────────────┐
│ Process Group │
│ ┌──────────┐ ┌────────────┐ ┌──────────┐ │
│ │ ListFile │──│ Connection │──│FetchFile │ │
│ │Processor │ │ (Queue) │ │Processor │ │
│ └──────────┘ └────────────┘ └────┬─────┘ │
│ │ │
│ ┌──────▼──────┐ │
│ │ ConvertRecord│ │
│ │ Processor │ │
│ └──────┬──────┘ │
│ ┌──────▼──────┐ │
│ │ PutDatabase │ │
│ │ Record │ │
│ └─────────────┘ │
└─────────────────────────────────────────────────┘
FlowFiles are the atomic unit of data. Each FlowFile has attributes (key-value metadata: uuid, filename, path, mime.type) and content (the data payload, stored in the Content Repository by reference). Content is immutable -- modifications create new content claims via copy-on-write. FlowFiles are lightweight references; large payloads remain on disk, not in heap.
Processors perform work: ingest, transform, route, filter, enrich, or deliver data. Each processor has configurable properties, scheduling settings (timer-driven, cron-driven, event-driven), and defined Relationships (success, failure, matched, unmatched) that route FlowFiles to downstream connections. Key settings: Concurrent Tasks, Run Schedule, Penalty Duration, Yield Duration.
Connections link processors and serve as queues for FlowFiles. Each connection has configurable back pressure thresholds (default: 10,000 objects, 1 GB data size), FlowFile expiration, prioritization, and load balancing (Round Robin, Single Node, Partition by Attribute).
Process Groups provide modularity. Input/Output Ports define interfaces. Process groups can be nested, versioned via Git-based Flow Registry, and assigned their own parameter contexts and controller services.
Controller Services provide shared configuration: DBCPConnectionPool (database connections), SSLContextService (TLS), RecordReader/RecordSetWriter implementations (CSV, JSON, Avro, Parquet), and schema registries.
| Repository | Purpose | Storage Recommendation | |---|---|---| | FlowFile Repository | Write-Ahead Log for current FlowFile metadata | Fast SSD, separate disk | | Content Repository | Actual data payloads with reference counting | Multiple SSD partitions for parallel I/O | | Provenance Repository | Complete history and lineage of every FlowFile (Lucene-indexed) | Separate disk, configurable retention |
All three repositories provide durability and crash recovery. Content Repository uses copy-on-write and garbage collection of unreferenced claims. Provenance Repository records every event (CREATE, RECEIVE, SEND, CLONE, FORK, JOIN, ROUTE, MODIFY_CONTENT, DROP) with full replay capability.
NiFi's record framework enables format-agnostic batch processing of structured data:
RecordPath navigates and manipulates record structures: /person/address/city, /items[*], /items[./price > 100], substringBefore(), toDate(), coalesce().
Processing many records in a single FlowFile is far more efficient than one-record-per-FlowFile. Schema inference (since 1.9) allows dynamic schema handling without manual definitions.
NiFi 1.x (ZooKeeper-based): Zero-leader clustering where every node processes data independently. ZooKeeper handles Cluster Coordinator election (manages membership and heartbeats) and Primary Node election (runs isolated processors like ListFile). Minimum 3 ZooKeeper instances for quorum.
NiFi 2.x (Kubernetes-native): Cluster coordination via Kubernetes Leases, shared state via Kubernetes ConfigMaps. Eliminates ZooKeeper dependency on K8s. ZooKeeper still supported for bare-metal deployments.
| Category | Key Processors | |---|---| | File Ingestion | ListFile + FetchFile (preferred), GetFile, GetSFTP | | Database | QueryDatabaseTable (incremental), ExecuteSQLRecord, PutDatabaseRecord (INSERT/UPDATE/UPSERT/DELETE), GenerateTableFetch | | Messaging | ConsumeKafka, PublishKafka (controller service-based in 2.x), ConsumeJMS, PublishJMS | | HTTP | InvokeHTTP, ListenHTTP, HandleHttpRequest/Response | | Record Transforms | ConvertRecord, UpdateRecord, QueryRecord, LookupRecord, ValidateRecord | | Routing | RouteOnAttribute, RouteOnContent, DistributeLoad, ControlRate | | Attribute | UpdateAttribute, EvaluateJsonPath, ExtractText, AttributesToJSON |
| Change | Impact | |---|---| | Java 21 required | Breaking change from 1.x (Java 8/11) | | Python processors | First-class extension language (Python 3.10+, full CPython, pip/conda ecosystem) | | K8s clustering | No ZooKeeper on Kubernetes (Leases + ConfigMaps) | | Git-based Flow Registry | Replaces deprecated NiFi Registry (removal planned in 3.0) | | Template support removed | Use registry-based versioning instead | | Legacy Kafka processors removed | Migrate to controller service-based ConsumeKafka/PublishKafka | | Hive components removed | Migrate to JDBC alternatives | | Cache services renamed | DistributedMapCacheServer -> MapCacheServer | | Migration path | Must upgrade to 1.27.0 first, then to 2.x |
NiFi Expression Language is used throughout processor properties for dynamic values:
${filename}, ${uuid}${filename:substringAfter('_')}, ${attr:toUpper()}${now():format('yyyy-MM-dd')}${attr:equals('value'):ifElse('yes','no')}${fileSize:toNumber():divide(1024)}${ENV_VAR}MiNiFi (Minimal NiFi) is a lightweight agent for edge data collection, available in Java and C++ variants:
| Variant | Runtime | Use Case | |---|---|---| | MiNiFi Java | JVM | Edge devices with JVM support; broader processor compatibility | | MiNiFi C++ | Native C++ | Resource-constrained devices; minimal footprint; embedded systems |
Flows designed in NiFi deploy to MiNiFi agents via C2 Protocol (Command and Control). MiNiFi handles intermittent connectivity and resource-constrained environments. MiNiFi Java supports Python processors in NiFi 2.x.
[Edge Sensors/Systems] -> [MiNiFi Agent] -> [Network] -> [NiFi Cluster] -> [Destinations]
/nifi-api/system-diagnostics, /nifi-api/flow/process-groups/root/status?recursive=true| Dimension | NiFi | ADF | Synapse Pipelines | |---|---|---|---| | Model | Flow-based, record-at-a-time | Visual pipelines, batch-oriented | ADF-based pipelines | | Hosting | Self-hosted (on-prem, K8s, Docker) | Azure-managed | Azure-managed (Synapse) | | Connectors | 300+ processors | 90+ connectors | ADF connector subset | | Strength | Real-time routing, provenance, compliance | Azure ecosystem, hybrid IR, CI/CD | Synapse pool integration | | Cost | Infrastructure only (open source) | Per-activity + DIU | Per-activity + pool | | Best for | Regulated environments, flow routing, edge collection | Azure-centric ETL, managed service | Synapse-centric analytics |
nifi.provenance.repository.max.storage.size, max.storage.time) appropriate to compliance needs.references/architecture.md -- FlowFile model, three-repository design, clustering (ZooKeeper and K8s), back pressure mechanics, security model, NiFi 2.x architectural changes, processor categoriesreferences/best-practices.md -- Processor selection, connection sizing, process group organization, performance optimization (concurrent tasks, batching, repository configuration), error handling patterns, security, Docker/K8s deployment, NiFi 1.x to 2.x migrationreferences/diagnostics.md -- Back pressure troubleshooting, memory pressure (JVM heap, GC), processor errors, clustering issues, performance monitoring (bulletin board, system diagnostics, provenance analysis), flow debugging, connection queue monitoringnifi-flow-layout -- layout and organization of NiFi flowsadf-master -- Azure Data Factory implementation guidanceingesting-into-data-lake -- AWS Glue implementation guidancedevelopment
Oracle Database guidance for SQL, PL/SQL, SQLcl, ORDS, administration, app development, performance, security, migrations, and agent-safe database workflows. Use when the user asks to write, edit, rewrite, review, format, debug, tune, or explain SQL; create or refactor PL/SQL; use SQLcl, Liquibase, ORDS, JDBC, node-oracledb, Python, Java, .NET, or database frameworks; troubleshoot queries, sessions, locks, waits, indexes, optimizer plans, AWR, ASH, migrations, schemas, users, roles, privileges, backup, recovery, Data Guard, RAC, multitenant, containers, monitoring, auditing, encryption, VPD, or safe agent database operations.
documentation
Patterns for reading and writing oleander Iceberg catalog tables in Spark jobs, including naming conventions, write modes, and catalog hierarchy.
data-ai
Integrate Okta for enterprise identity workflows including OIDC login, group claims, and policy-based access controls. Use when implementing workforce or B2B identity scenarios.
documentation
Use when arranging Apache NiFi processors, process groups, ports, comments, numbering, crossing connections, dense fan-in/fan-out, or reusable readable canvas layouts.