<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Unable to use the Spark Conecxt Variable in the Spark-Shell (Scala) in CDH5.1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-the-Spark-Conecxt-Variable-in-the-Spark-Shell/m-p/16362#M2488</link>
    <description>&lt;P&gt;The method is "textFile" not "textfile"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://spark.apache.org/docs/1.0.0/api/scala/index.html#org.apache.spark.SparkContext"&gt;https://spark.apache.org/docs/1.0.0/api/scala/index.html#org.apache.spark.SparkContext&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Aug 2014 09:54:35 GMT</pubDate>
    <dc:creator>srowen</dc:creator>
    <dc:date>2014-08-03T09:54:35Z</dc:date>
    <item>
      <title>Unable to use the Spark Conecxt Variable in the Spark-Shell (Scala) in CDH5.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-the-Spark-Conecxt-Variable-in-the-Spark-Shell/m-p/16360#M2487</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Spark 1.0.0 in a CDH 5.1 VM. &amp;nbsp;I am trying to use the Spark-Shell (Scala). But I am getting the below error regularly and not able to use thecontect variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Using Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_55)
Type in expressions to have them evaluated.
Type :help for more information.
Spark context available as sc.

scala&amp;gt; val text = sc.textfile("/user/cloudera/test1")
&amp;lt;console&amp;gt;:12: error: value textfile is not a member of org.apache.spark.SparkContext
val text = sc.textfile("/user/cloudera/test1")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:04:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-the-Spark-Conecxt-Variable-in-the-Spark-Shell/m-p/16360#M2487</guid>
      <dc:creator>ArunShell</dc:creator>
      <dc:date>2022-09-16T09:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use the Spark Conecxt Variable in the Spark-Shell (Scala) in CDH5.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-the-Spark-Conecxt-Variable-in-the-Spark-Shell/m-p/16362#M2488</link>
      <description>&lt;P&gt;The method is "textFile" not "textfile"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://spark.apache.org/docs/1.0.0/api/scala/index.html#org.apache.spark.SparkContext"&gt;https://spark.apache.org/docs/1.0.0/api/scala/index.html#org.apache.spark.SparkContext&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Aug 2014 09:54:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-the-Spark-Conecxt-Variable-in-the-Spark-Shell/m-p/16362#M2488</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-08-03T09:54:35Z</dc:date>
    </item>
  </channel>
</rss>

