Update to pyspark package requirements (#798)

* separate SP creation

separated Service Principal creation of aks due to issues on some machines with integrated SP creation
fixed typo in README

* Update deploy-sql-big-data-aks.py

removed JSON output

* adjusted for CU5

* change back

* update to CU5

* Updated requirements for pyspark installation in CU5
This commit is contained in:
Ben Weissman
2020-08-12 12:13:32 -07:00
committed by GitHub
parent ee4cfac169
commit 4dbb29857c
@@ -106,9 +106,20 @@
"The following code can be used to install packages on each executor node at runtime. \\\n",
"**Note**: This functionality is not available on a non-root BDC deployment (including OpenShift). This installation is temporary, and must be performed each time a new Spark session is invoked.\n",
"\n",
"If you want to use this from CU5 upwards, you must add two settings pre-deployment.\n",
"\n",
"In contron.json, add (under security):\n",
"\n",
"_\"allowRunAsRoot\": true_\n",
"\n",
"In BDC.json, add (under spec.services.spark.settings): \n",
"\n",
"_\"yarn-site.yarn.nodemanager.container-executor.class\": \"org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor\"_\n",
"\n",
"``` Python\n",
"import subprocess\n",
"\n",
"import os\n",
"os.environ[\"XDG_CACHE_HOME\"]=\"/tmp\"\n",
"# Install TensorFlow\n",
"stdout = subprocess.check_output(\n",
" \"pip3 install tensorflow\",\n",