Skip to content

Commit

Permalink
fix #7394 document compatible versions of spark
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdraves committed Jun 13, 2018
1 parent 2e62e56 commit e6d9558
Showing 1 changed file with 8 additions and 51 deletions.
59 changes: 8 additions & 51 deletions doc/scala/SparkUI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,21 @@
"source": [
"# Spark Magic\n",
"\n",
"BeakerX has a Spark magic that provides deeper integration with Spark. It provides a GUI dialog for connecting to a cluster, a progress meter that shows how your job is working and links to the regular Spark UI, and it forwards kernel interrupt messages onto the cluster so you can stop a job without leaving the notebook, and it automatically displays Datasets using an interactive widget. Finally, it automatically closes the Spark session when the notebook is closed."
"BeakerX has a Spark magic that provides deeper integration with Spark. It provides a GUI dialog for connecting to a cluster, a progress meter that shows how your job is working and links to the regular Spark UI, and it forwards kernel interrupt messages onto the cluster so you can stop a job without leaving the notebook, and it automatically displays Datasets using an interactive widget. Finally, it automatically closes the Spark session when the notebook is closed.\n",
"\n",
"It is compatible with Spark version 2.x."
]
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "",
"version_major": 2,
"version_minor": 0
},
"method": "display_data"
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c0436b7c-ca2b-4bf8-8690-6f7a80b0da26",
"version_major": 2,
"version_minor": 0
},
"method": "display_data"
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"%%classpath add mvn\n",
"org.apache.spark spark-sql_2.11 2.2.1"
"org.apache.spark spark-sql_2.11 2.3.1"
]
},
{
Expand Down Expand Up @@ -90,34 +67,14 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c168a154-3319-4284-967d-5e58bfb1a5e9",
"version_major": 2,
"version_minor": 0
},
"method": "display_data"
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"%%spark --connect\n",
"SparkSession.builder().master(\"local[100]\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit e6d9558

Please sign in to comment.