Setting Environment Variables for NIC Segregation
The MAPR_SUBNETS
and MAPR_EXTERNAL
environment
variables can be used to segregate NICs for internal and external clients or to
segregate NICs for high-performance and low-performance clients.
Setting the MAPR_SUBNETS Environment Variable
To specify the internal IP addresses of CLDB and MapR Filesystem nodes:
Setting the MAPR_EXTERNAL Environment Variable
To specify the external IP addresses of CLDB, MapR Filesystem, and/or MAST Gateway nodes:
Examples
Suppose the value for the MAPR_EXTERNAL
environment variable on
MapR Filesystem node is the following:
10.10.103.80,10.10.30.205
External clients can connect to MapR Filesystem on IPs 10.10.103.80, 10.10.30.205 and the ports on which the MapR Filesystem is reachable are the default ports. If MapR Filesystem is running 2 instances, then:
- Instance 1 is reachable on 10.10.103.80:<5660>, 10.10.30.205:<5660>
- Instance 2 is reachable on 10.10.103.80:<5661>, 10.10.30.205:<5661>
If MapR Filesystem is running 3 instances:
- Instance 1 is reachable on 10.10.103.80:<5660>, 10.10.30.205:<5660>
- Instance 2 is reachable on 10.10.103.80:<5661>, 10.10.30.205:<5661>
- Instance 3 is reachable on 10.10.103.80:<5662>, 10.10.30.205:<5662>
MAPR_EXTERNAL
environment variable on a MAST
Gateway node is the following: 10.20.30.100
External
clients can connect to MAST Gateway on IP 10.20.30.100 and the port on which
MAST Gateway is reachable is the default port (8660). If MapR Filesystem is also running on
this node, then both MapR Filesystem and MAST Gateway are reachable on the IP 10.20.30.100
and the ports on which they are reachable are the default
ports.
Specifying External IP Address of ZooKeeper Nodes
-EZ
option can be used to specify IP address of each ZooKeeper. To
specify the external IP address of ZooKeeper nodes, during cluster
configuration:configure.sh
utility as shown below:
/opt/mapr/server/configure.sh -C <hostname|IP>[,<hostname|IP>,..] -Z <IP>[,<IP>..] -EZ <IP>[:<port>][,<IP>[:<port>]..] [-F <disk_list_file>] [-N <cluster_name>]
- When each ZooKeeper has a different external IP address, the
-EZ
option can be used to specify IP address of each ZooKeeper and optionally the port as well (separated by a colon); the IP address can be different while the port number is the same. - When there are multiple ZooKeepers listening on the same external IP
(such as in a Docker container), the
-EZ
option can be used to specify IP address and port (separated by a colon); the port can be different while IP address is the same.