Community Articles
Find and share helpful community-sourced technical articles.
Labels (2)

Reading and writing files to a MapR cluster (version 6) is simple, using the standard PutFile or GetFile, utilizing the MapR NFS.

If you've searched high and low on how to do this, you've likely read articles and GitHub projects specifying steps. I've tried these steps without success, meaning whats out there is too complicated or out-dated to solve NiFi reading/writing to MapR. You don't need to re-compile the HDFS processors with the MapR dependencies, just follow the steps below:

1) Install the MapR client on each NiFi node

#Install syslinux (for rpm install)
sudo yum install syslinux
#Download the RPM for your OS 
rpm -Uvh mapr-client-
#Configure the mapr client connecting with the cldb
/opt/mapr/server/ -c -N -C -genkeys -secure
#Once you have the same users/groups on your OS (as MapR), you will be able to use maprlogin password (allowing you to login with a Kerberos ticket)
#Prove that you can access the MapR FS
hadoop fs -ls / 

2) Mount the MaprR FS on each NiFi node

sudo mount -o hard,nolock /mapr

*This will allow you to access the MapRFS on the mount point /mapr/

3) Use the PutFile and GetFile processor referencing the /mapr directory on your NiFi nodes

*Following 1-3 allows you to quickly read/write to MapR, using NiFi.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.
Version history
Last update:
‎04-03-2018 07:50 PM
Updated by:
Top Kudoed Authors