blob: afddfeb3a72520dc20b09cbf4ab84d2a24b801fd [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: (Deprecated) Initialize a new SQLContext</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head><body>
<table width="100%" summary="page for sparkRSQL.init {SparkR}"><tr><td>sparkRSQL.init {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table>
<h2>(Deprecated) Initialize a new SQLContext</h2>
<h3>Description</h3>
<p>This function creates a SparkContext from an existing JavaSparkContext and
then uses it to initialize a new SQLContext
</p>
<h3>Usage</h3>
<pre>
sparkRSQL.init(jsc = NULL)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>jsc</code></td>
<td>
<p>The existing JavaSparkContext created with SparkR.init()</p>
</td></tr>
</table>
<h3>Details</h3>
<p>Starting SparkR 2.0, a SparkSession is initialized and returned instead.
This API is deprecated and kept for backward compatibility only.
</p>
<h3>Note</h3>
<p>sparkRSQL.init since 1.4.0
</p>
<h3>See Also</h3>
<p><a href="sparkR.session.html">sparkR.session</a>
</p>
<h3>Examples</h3>
<pre><code class="r">## Not run:
##D sc &lt;- sparkR.init()
##D sqlContext &lt;- sparkRSQL.init(sc)
## End(Not run)
</code></pre>
<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.4.0 <a href="00Index.html">Index</a>]</div>
</body></html>