NiFi & Streamsets Flashcards

1
Q

What is Apache NiFi?

A

Is is a dataflow management tool for automating the movement of data between different systems. It manages the movement of data between any source and destination. It is data source agnostic supporting disparate and distributed sources of differing formats, shemas, protocols, speeds and sizes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe NiFi components

A

FlowFile: Represents each object moving through the processors of the pipeline. It contains attributes of the data as well as a reference to the associated but it does not contain the data itself.
Processor: Responsible for performing the work. It is doing some combination of data routing, transformation or mediation between systems.
Connection: Provides the actual linkage between processors. These act as queues.
Flow Controller: Maintains the knowledge of how processes connect and manages the threads all processes use.
Process Group: Groups components together in order to organize the DataFlow in a way that makes it more understandable from a higher level.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe Apache NiFi architecture

A

NiFi runs within a JVM on a host operating system.

Primary components are:
WebServer: Host HTTP based command and control APIs
Flow Controller: Brain of the operations. Allocates and manages threads for processors.
Flow File Repository: Contains metadata for all current FlowFiles in the flow.
Content Repository: Holds the content for current and past FlowFiles.
Provenance Repository: Holds the history of FlowFiles

Each node participating in a cluster performs the same operations on data but each operates on a different set of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is StreamSets Data Collector?

A

Allows to build continuous data pipelines, each of which consumes record-oriented data from a single origin, optionally operates on those records in one or more processors and writes data to one or more destinations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you add customer processors on StreamSets?

A

You can create and build your own processor using Java. Generally speaking, you first create a processors template using a Maven archetype, add your custom logic, build the processor, and place the jar inside the lib folder.

Alternatively, you could use a Jython, Groove or JavaScript processor which allows to add custom code without having to create a custom processor from scratch.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a NiFi template?

A

It is workflow that may be reused, which you may import and export.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is NiFi capable of functioning as a master-slave design?

A

The 0-master is taken into account. Each unit in the NiFi network is identical. The Zookeeper service manages the NiFi cluster and appoints a single point as the Cluster Administrator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the components of a flowfile in NiFI?

A

It is made up of two parts:

  1. Content which is a stream of bytes that contains a pointer to the actual data being processed. Keep in mind that the flowfile itself does not contain the data, rather it is a pointer to the content data. The actual content will be in the Content Repository of NiFi.
  2. Attributes which contains metadata about the data such as filename, UUID, file type, etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens to data if NiFi goes down?

A

It keeps a record of what is happening in the FlowFile repo, so it is able to restore its state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the repositories in NiFi?

A

FlowFile Repository contains metadata for all the current FlowFiles in the flow
Content Repository holds the content for current and past FlowFiles
Provenance Repository holds the history of FlowFiles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly