Describes how to use the FUSE-based POSIX client.
This section describes how to start and manage the POSIX client.
To ensure that the service can be started and stopped and to run the help option, set the
shared LD_LIBRARY_PATH environment variable. Update the shared library
environment variable to include the paths to the following:
libjvm.so file$MAPR_HOME/lib (that is, /opt/mapr/lib directory)For example:
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79.x86_64/jre/lib/amd64/server/:/opt/mapr/lib
To allow a non-root user to start this service, as administrator or root
user, run the following command:
chmod u+s /opt/mapr/bin/fusermount
Verify that permissions have been set for non-root user to start the service. For example:
ls -l /opt/mapr/bin/fusermount
Your output should look similar to the following:
-rwsr-xr-x 1 root root 39704 Feb 16 19:41 /opt/mapr/bin/fusermount
Ensure that the non-root user has full permissions on the mount point and log files.
To manually start or stop the service:
service mapr-posix-client-* [start|stop|status]
When you run the command, replace * with basic or platinum, which
corresponds with the package that is installed on the system.
systemd (on CentOS/RH 7.x and Suse 12), the
service will enter failed state (if you tried to stop) or activating state (if you tried to
restart) and you must manually kill the client processes.The POSIX client reads the mapr-clusters.conf file to determine whether
the process must start in secure or non-secure mode. If security is configured, the
servicewithimpersonation ticket file must be present in the default /tmp
directory. If the ticket file is not in the default /tmp directory, specify
the location of the ticket file using the fuse.ticketfile.location
configuration parameter in the fuse.conf file
If the ticket expires after a connection has been established between the POSIX client and the cluster, the connection can stay alive for up to an hour. No new connections will be allowed. If the ticket was blacklisted, restart POSIX client to refresh the ticket.
The POSIX client can be accessed using user and service tickets. The service tickets have
long lifetimes, by default, for ease of administration. This is useful for running
application processes that should not be bounded by the CLDB duration
(cldb.security.user.ticket.duration.seconds) and renewal
(cldb.security.user.ticket.max.duration.seconds) properties, which limit
the lifetime of user tickets. If you plan to use a user ticket, ensure that the user has
read permissions on the ticket file.
Irrespective of the ticket type, after generating the ticket, set the
fuse.ticketfile.location parameter value in the
fuse.conf file to point to the ticket file to use.
For more information, see:
To mount the HPE Ezmeral Data
Fabric filesystem at the mount point specified in the
/opt/mapr/conf/fuse.conf file, create the mountpoint specified in the
fuse.conf file and start the service. For example:
mkdir /mapr
service mapr-posix-client-* start
* with basic or platinum, which
corresponds with the package that is installed on the system. Any user can set time using touch -t for any file on a FUSE mounted
filesystem.
To determine whether the POSIX client is running, run the following command:
service mapr-posix-client-* status
* with basic or platinum, which
corresponds with the package that is installed on the system.Before you add and/or remove users using the POSIX client, make a note of the following:
By default, the UID cache will expire in 30 minutes. To disable UID cache, set the value
(in seconds) for fs.mapr.uid.cache.timeout.seconds parameter in the
core-site.xml file. You can set the value to:
0 to fetch the GID information from the idstore directly>0 to specify the amount of time to keep the UID information in
cacheFor example, your core-site.xml entry would look similar to the following
for:
<property>
<name>fs.mapr.uid.cache.timeout.seconds</name>
<value>0</value>
<description>disable UID cache</description>
</property><property>
<name>fs.mapr.uid.cache.timeout.seconds</name>
<value>180</value>
<description>UID cached for 3 minutes</description>
</property>To register the POSIX client with additional clusters, you must add entries directly to the
/opt/mapr/conf/mapr-clusters.conf file. The clusters will be visible
after few minutes.
The POSIX FUSE platinum client can break large reads into multiple pieces to be handled in parallel, if you set the FUSE read chunk size of a file. This process is called sharding.
By default, the FUSE read chunk size is set to 2 MB. To change the chunk size used by the
FUSE platinum client for parallel reads, set the value (in bytes) for the
fs.mapr.fuseshard.chunksize configuration field in the core-site.xml file. To set the chunksize to 5 MB (5242880 bytes),
use:
<property>
<name>fs.mapr.fuseshard.chunksize</name>
<value>5242880</value>
<description>setting chunk size</description>
</property>
For example, if the FUSE read chunk size is set to 1 MB, and the FUSE platinum client is configured with 5 libraries, then the platinum client reads 5 MB in parallel.
To unmount the mountpoint and kill the FUSE process, run the following command:
service mapr-posix-client-* stop
* with basic or platinum, which
corresponds with the package that is installed on the system.