Connecting MapR Data Science Refinery to MapR Sandbox
To connect MapR Data Science Refinery to MapR Sandbox, install MapR Sandbox, configure
resource settings in your virtual machine (if needed), and then set the parameters corresponding
to your virtual machine environment in your docker run
command.
Procedure
-
Install the sandbox using a virtual machine player
-
Determine the parameters you want to pass to Docker:
-
Construct your
docker run
command based on Step 3.The following are examples of
docker run
commands that use VirtualBox with the different network adapters. Note the parameters highlighted in bold:docker run -it -p 9995:9995 \ -e HOST_IP=192.168.192.1 \ -p 10000-10010:10000-10010 \ -p 11000-11010:11000-11010 \ -e MAPR_CLUSTER=demo.mapr.com \ -e MAPR_CLDB_HOSTS=192.168.192.100 \ -e MAPR_CONTAINER_USER=mapr \ -e MAPR_CONTAINER_PASSWORD=mapr \ -e MAPR_CONTAINER_GROUP=mapr \ -e MAPR_CONTAINER_UID=2000 \ -e MAPR_CONTAINER_GID=2000 \ -e MAPR_MOUNT_PATH=/mapr \ --cap-add SYS_ADMIN \ --cap-add SYS_RESOURCE \ --device /dev/fuse \ -e MAPR_HS_HOST=192.168.192.100 \ --add-host="maprdemo:192.168.192.100" \ --add-host="maprdemo.local:192.168.192.100" \ maprtech/data-science-refinery:v1.4.1_6.1.0_6.3.0_centos7
docker run -it -p 9995:9995 \ -e HOST_IP=$(ip r get 8.8.8.8 | awk 'NR==1 {print $NF}') \ -p 10000-10010:10000-10010 \ -p 11000-11010:11000-11010 \ -e MAPR_CLUSTER=demo.mapr.com \ -e MAPR_CLDB_HOSTS=10.2.13.163 \ -e MAPR_CONTAINER_USER=mapr \ -e MAPR_CONTAINER_PASSWORD=mapr \ -e MAPR_CONTAINER_GROUP=mapr \ -e MAPR_CONTAINER_UID=2000 \ -e MAPR_CONTAINER_GID=2000 \ -e MAPR_MOUNT_PATH=/mapr \ --cap-add SYS_ADMIN \ --cap-add SYS_RESOURCE \ --device /dev/fuse \ -e MAPR_HS_HOST=10.2.13.163 \ --add-host="maprdemo:10.2.13.163" \ --add-host="maprdemo.local:10.2.13.163" \ maprtech/data-science-refinery:v1.4.1_6.1.0_6.3.0_centos7
What to do next
After following these steps, you can refer to other MapR Data Science Refinery topics that describe how to use the resulting container.
If you encounter resource errors or hangs, you may need to increase the processor and memory configuration settings in your virtual machine player.