title: Error in Apache Spark called input path does not exist
body: <p>Are there any algorithms in Apache Spark to find out the frequent patterns in a text file. I tried following example but always end up with this error:</p>
  
  <blockquote>
    <p>org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: file:
    /D:/spark-1.3.1-bin-hadoop2.6/bin/data/mllib/sample_fpgrowth.txt</p>
  </blockquote>
  
  <p>Can anyone help me solve this problem?</p>
  
  <pre><code>import org.apache.spark.mllib.fpm.FPGrowth
  
  val transactions = sc.textFile("...").map(_.split(" ")).cache()
  
  val model = new FPGrowth()
  
  model.setMinSupport(0.5)
  
  model.setNumPartitions(10)
  
  model.run(transactions)
  
  model.freqItemsets.collect().foreach { 
      itemset =&gt; println(itemset.items.mkString("[", ",", "]") + ", " + itemset.freq)
  }
  </code></pre>