Integration / Apache NiFi Interview Questions
How does NiFi integrate with Apache Hadoop and HDFS?
NiFi provides a suite of processors for reading from and writing to HDFS (Hadoop Distributed File System) and integrates with the broader Hadoop ecosystem including Hive and HBase. The integration uses standard Hadoop client libraries and respects Hadoop authentication (Simple or Kerberos).
Key HDFS processors:
PutHDFS: Writes FlowFile content to a specified HDFS path. Supports configuring block size, replication factor, buffer size, compression codec (GZIP, Snappy, LZO), and write conflict resolution. The output path supports NiFi EL for dynamic path construction.
FetchHDFS: Reads a file from HDFS into a FlowFile. The path is taken from the path and filename attributes set by ListHDFS.
ListHDFS: Lists files in an HDFS directory recursively, producing one FlowFile per file with metadata attributes. Uses State Management to track already-listed files.
Hadoop configuration is provided via the Hadoop Configuration Resources property pointing to hdfs-site.xml and core-site.xml files. For Kerberos-secured clusters, configure the Kerberos Principal and Kerberos Keytab properties or reference a KerberosCredentialsService Controller Service.
NiFi also integrates with Apache Hive via SelectHiveQL (query execution) and PutHiveStreaming (transactional ACID inserts), and with HBase via PutHBaseCell, GetHBase, and ScanHBase processors.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
