Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/6234#discussion_r30573957
--- Diff: docs/programming-guide.md ---
@@ -41,14 +41,15 @@ In addition, if you wish to access an HDFS cluster, you
need to add a dependency
artifactId = hadoop-client
version = <your-hdfs-version>
-Finally, you need to import some Spark classes and implicit conversions
into your program. Add the following lines:
+Finally, you need to import some Spark classes into your program. Add the
following lines:
{% highlight scala %}
import org.apache.spark.SparkContext
-import org.apache.spark.SparkContext._
import org.apache.spark.SparkConf
{% endhighlight %}
+(If the Spark version is prior to 1.3.0, user needs to explicitly import
org.apache.spark.SparkContext._ to allow the implicit conversions.)
--- End diff --
I suggest a slight rewording and putting the import in code font:
Before Spark 1.3.0, you need to explicitly import
`org.apache.spark.SparkContext._` to enable essential implicit conversions.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]