Skip to content

Commit

Permalink
updates for new kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelowenthal committed Nov 25, 2015
1 parent f542c96 commit 64d73fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
15 changes: 2 additions & 13 deletions jupyter/Dataframes Scala.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Create a SQL Context"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"val sqlContext = new org.apache.spark.sql.hive.HiveContext(sc)"
"### Note: The newest versions of the kernel have a sqlContext already"
]
},
{
Expand Down Expand Up @@ -247,7 +236,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Spark-DSE Cluster (Scala 2.10.4)",
"display_name": "Spark-DSE Cluster",
"language": "scala",
"name": "spark-dse-cluster"
},
Expand Down
21 changes: 1 addition & 20 deletions jupyter/Move it with Spark SQL.ipynb
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Set up the Cassandra CQL Context. Set the default keyspace"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import org.apache.spark.sql.hive.HiveContext\n",
"val sqlContext = new HiveContext(sc)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -255,7 +236,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Spark-DSE Cluster (Scala 2.10.4)",
"display_name": "Spark-DSE Cluster",
"language": "scala",
"name": "spark-dse-cluster"
},
Expand Down

0 comments on commit 64d73fa

Please sign in to comment.