This document is a work-in-progress, please raise an issue if you encounter an issue or any confusion.
IMPORTANT: These instructions are not production ready, they have been included here to show what could be done.
See here for more info: http://docs.bluedata.com/50_mapr-control-system
These instructions assume you have deployed the AD server by setting ad_server_enabled=true
in your bluedata_infra.tfvars
file. You will need to run terraform apply ...
after making the update.
After terraform apply
, run terraform output ad_server_private_ip
to get the AD server IP address.
Please read the scripts below to understand what they are doing - they aren't too complicated!
From your client machine where the github project is checked out, run:
./scripts/end_user_scripts/embedded_mapr/1_setup_epic_mapr_sssd.sh
From your client machine where the github project is checked out, run:
./scripts/end_user_scripts/embedded_mapr/2_setup_ubuntu_mapr_sssd_and_mapr_client.sh
For HPE CP 5.1 build 1440+
./scripts/end_user_scripts/embedded_mapr/3_setup_datatap_new.sh
This script creates a volume named global and a Datatap named globalshare in the EPIC Demo Tenant.
If you are unable to perform operations such as create folders or upload files using the HPE CP UI, try restarting the webhdfs container with:
./generated/ssh_controller.sh 'docker restart $(docker ps -q --filter ancestor=epic/webhdfs:1.2)'
Ensure you have setup HCP and EPIC Demo Tenant with LDAP - ./README-AD.md
Create a spark 2.4 cluster with 1 controller and 1 jupyterhub (both nodes can use the small flavor). TIP - you can enable compute on the Controller if you don't have a spare worker to deploy.
Login to jupyterhub (ad_admin1/pass123) and launch a python 3 Jupyter notebook (not Spark).
In the jupyter notebook, create a cell with the following contents:
! hadoop fs -cat dtap://globalshare/airline-safety.csv
Run this cell - you should see data from the airline-safety.csv file, e.g.
2020-04-13 13:30:45 WARN NativeCodeLoader:62 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Xiamen Airlines,430462962,9,1,82,2,0,0,0,7,224,11,2,23ccidents_85_99,fatalities_85_99,incidents_00_14,fatal_accidents_00_14,fatalities_00_14