You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by RJ Nowling <rn...@gmail.com> on 2014/07/21 17:36:26 UTC
Examples have SparkContext improperly labeled?
Hi all,
The examples listed here
https://spark.apache.org/examples.html
refer to the spark context as "spark" but when running Spark Shell
uses "sc" for the SparkContext.
Am I missing something?
Thanks!
RJ
--
em rnowling@gmail.com
c 954.496.2314
Re: Examples have SparkContext improperly labeled?
Posted by RJ Nowling <rn...@gmail.com>.
Thanks for the clarification, Sandy.
On Mon, Jul 21, 2014 at 12:52 PM, Sandy Ryza <sa...@cloudera.com> wrote:
> Hi RJ,
>
> Spark Shell instantiates a SparkContext for you named "sc". In other apps,
> the user instantiates it themself and can give the variable whatever name
> they want, e.g. "spark".
>
> -Sandy
>
>
> On Mon, Jul 21, 2014 at 8:36 AM, RJ Nowling <rn...@gmail.com> wrote:
>
>> Hi all,
>>
>> The examples listed here
>>
>> https://spark.apache.org/examples.html
>>
>> refer to the spark context as "spark" but when running Spark Shell
>> uses "sc" for the SparkContext.
>>
>> Am I missing something?
>>
>> Thanks!
>>
>> RJ
>>
>>
>> --
>> em rnowling@gmail.com
>> c 954.496.2314
>>
--
em rnowling@gmail.com
c 954.496.2314
Re: Examples have SparkContext improperly labeled?
Posted by Sandy Ryza <sa...@cloudera.com>.
Hi RJ,
Spark Shell instantiates a SparkContext for you named "sc". In other apps,
the user instantiates it themself and can give the variable whatever name
they want, e.g. "spark".
-Sandy
On Mon, Jul 21, 2014 at 8:36 AM, RJ Nowling <rn...@gmail.com> wrote:
> Hi all,
>
> The examples listed here
>
> https://spark.apache.org/examples.html
>
> refer to the spark context as "spark" but when running Spark Shell
> uses "sc" for the SparkContext.
>
> Am I missing something?
>
> Thanks!
>
> RJ
>
>
> --
> em rnowling@gmail.com
> c 954.496.2314
>