Setting Environment Variables for NIC Segregation
Describes how to set environment variables to segregate NICs.
About this task
Use the MAPR_SUBNETS and MAPR_EXTERNAL environment
variables 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
About this task
To specify the internal IP addresses of CLDB and file system nodes:
Procedure
Results
Setting the MAPR_EXTERNAL Environment Variable
About this task
To specify the external IP addresses of CLDB, file system, and/or MAST Gateway nodes:
Procedure
Examples
Suppose the value for the MAPR_EXTERNAL environment variable on
file system node is the following:
10.10.103.80,10.10.30.205
External clients can connect to file system on IPs 10.10.103.80, 10.10.30.205 and the ports on which the file system is reachable are the default ports. If file system 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 file system 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.100External 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 file system is also running
on this node, then both file system 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
About this task
Procedure
/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 node has a different external IP address,
use the
-EZoption to specify the IP address of each ZooKeeper node, and optionally the port as well (separated by a colon); the IP address can be different while the port number must be the same for every node. - When there are multiple ZooKeeper nodes listening on the same
external IP (such as in a Docker container), use the
-EZoption to specify IP address and port (separated by a colon); the port can be different while the IP address is the same for every node.