mapr-setup.shThis section describes how to download and run the mapr-setup.sh
script to create a Persistent Application Container Client (PACC) image.
To create a PACC image using
mapr-setup.sh:
mapr-setup.sh, review these topics to understand important
prerequisites and security considerations:
mapr-setup.sh script from mapr.com to a Linux or Mac OS X platform where Docker 1.12.5 or later is
installed.mapr-setup.sh on Windows is not
supported.mapr-setup.sh script with the docker client
command to create the Docker
image:./mapr-setup.sh docker clientmapr-setup.sh uses the default value shown in the
square brackets ([]):
| Parameter | Notes |
Build MapR client image? (y/n) [y] |
Press y to continue or n to exit the
script. |
Image OS class
(centos8,
ubuntu18)
[<local OS>]: |
Specify the base operating system on which to build the image. Note: SUSE
is not currently supported.
|
Docker FROM base image name:tag
[centos:centos8]: |
Specify the starting image used to create the new image. If necessary, you can enter your own tag and image name to choose a base image already created for your installation. |
MapR core version [6.x.x]: |
Specify the core version that matches the version of the data-fabric
cluster you want to access using the PACC. For the supported core values, see
Table 1 in Extending a PACC. If you want to install the
Hadoop Client with YARN, you must select 5.2.1 or
later. |
MapR MEP version [x.x.x]: |
Specify the MEP version that
matches the MEP version of the
data-fabric cluster you want to access using the PACC. Supported values are
2.0 or later. If you want to install the Hadoop Client with
YARN, you must select MEP
3.0 or later. For more information about MEPs, see MEP
Components and OS Support. |
Install Hadoop YARN client (y/n) [n]: |
Choose whether to install the Hadoop Client with YARN. Note that the Hadoop Client with YARN requires core version 5.2.1 and MEP 3.0 or later. If you choose No, the script installs the POSIX (FUSE), HPE Ezmeral Data Fabric Database, and data-fabric streams clients. The script does not install the Hadoop Client with YARN and does not ask if you want to install the Hive, Pig, and streams clients. |
Add POSIX (FUSE) client to container? (y/n) [y]: |
Choose whether to install the POSIX (FUSE) client. |
Add HBase client to container? (y/n) [n]: |
Choose whether to install the HBase client. |
Add Hive client to container? (y/n) [n]: |
Choose whether to install the Hive client. |
Add Pig client to container? (y/n) [n]: |
Choose whether to install the Pig client. |
Add Spark client to container? (y/n) [n]: |
Choose whether to install the Spark client. |
Add MapR Streams clients to container? (y/n) [y]: |
Choose whether to install the streams clients. |
Install additional packages? (y/n) [n]:
|
Specify a space-separated list of custom packages that will be installed
during the build of the image. For example, if you answer yes
and accept the default, the python3 and nano
packages are included in the container. The custom packages must be present in
the default OS repository for the script to install them. |
MapR client image tag name [<name>]: |
Accept the software-provided name for the image, or provide your own name.
This is the name you will use to run the image to create the PACC. The script
automatically provides a name. For example:
|
Container network mode (bridge|host) [bridge]: |
Select the Docker network mode. For more information, see the Docker documentation. |
Container memory: specify host XX[kmg] or 0 for no limit
[0]: |
Specify the maximum amount of memory (in kilobytes, megabytes, or
gigabytes) that Docker allows the container to access. For example:
|
Complete!
...Success
Stopped service mapr-posix-client-container
...Success
---> 170362a5a82d
Removing intermediate container 8f100b9d6d9b
Step 7/8 : ENTRYPOINT /opt/mapr/installer/docker/mapr-setup.sh container
---> Running in f98e5cde91ed
---> 7099a990a422
Removing intermediate container f98e5cde91ed
Step 8/8 : CMD start
---> Running in f6ae4139ab41
---> 01ca2ab6d0d3
Removing intermediate container f6ae4139ab41
Successfully built 01ca2ab6d0d3
Edit '/root/thinclient/docker_images/client/mapr-docker-client.sh' to set
MAPR_CLUSTER and MAPR_CLDB_HOSTS and then execute it to start the containermapr-setup.sh
creates the mapr-docker-client.sh sample-run file and displays the
location of the file:
Edit '/root/thinclient/docker_images/client/mapr-docker-client.sh' to set
MAPR_CLUSTER and MAPR_CLDB_HOSTS and then execute it to start the containermapr-docker-client.sh
contains environment variables for the image and makes it easy for you to start the
container.
mapr-docker-client.sh script file. At a minimum, you must
provide the MAPR_CLUSTER name and the MAPR_CLDB_HOSTS
information. For
example:MAPR_CLUSTER=my.cluster.com
MAPR_CLDB_HOSTS=perfnode13[4-9].perf.labMAPR_ADDITIONAL_PACKAGES=<space-separated-list-of-packages>.
MAPR_ADDITIONAL_PACKAGES=python3 nanoMAPR_MOUNT_PATH.MAPR_TICKETFILE_LOCATION. For more information about security
parameters, see Running the PACC Using Docker.MAPR_CONTAINER_USERMAPR_CONTAINER_GROUPMAPR_CONTAINER_UIDMAPR_CONTAINER_GIDMAPR_CLASSPATH,
MAPR_HOME, PATH, and others.MAPR_TZ. The default is
UTC.MAPR_MOUNT_PATH parameter
and specifying a mount path value. The MAPR_MOUNT_PATH parameter is
commented out for Mac builds but not for Linux builds. If you uncomment the
parameter, you can ignore the following error
message:Started service mapr-posix-client-container [FAILED]mapr-docker-client.sh file to start the container:
./docker_images/client/mapr-docker-client.shThe script uses the current user name to create a user for cluster access. This user is created so that you can run your application as a data-fabric client user:
Testing for cluster user account...
Enter MapR cluster user name: robertjones
User 'robertjones' does not exist. Creating new cluster user account...
Enter 'robertjones' uid: 502
Enter 'robertjones' group name: users
Enter 'robertjones' password: <password>
...Success
Configuring MapR client ( -c -C perfnode134.perf.lab -N my.cluster.com)...
create /opt/mapr/conf/conf.old
Configuring Hadoop-2.7.0 at /opt/mapr/hadoop/hadoop-2.7.0
Done configuring Hadoop
CLDB node list: perfnode134.perf.lab:7222
Zookeeper node list:
Node setup configuration: hbinternal
Log can be found at: /opt/mapr/logs/configure.log
...SuccessThe successful completion of this step results in a user prompt that is inside the newly running container. Take care not to exit this prompt inadvertently, as doing so terminates the container.
docker ps and
docker inspect commands to inspect the container. Do not try to run the
docker ps and docker inspect commands from the user
prompt created in Step 7. You must open a new session to the Docker host to avoid
terminating the
container:docker ps
docker inspect <container-run-ID>