RE: filter RDD by variable

2016-12-08 Thread Mendelson, Assaf
. [mailto:soheila...@gmail.com] Sent: Wednesday, December 07, 2016 6:23 PM To: user@spark.apache.org Subject: filter RDD by variable Hi I am new in Spark and have a question in first steps of Spark learning. How can I filter an RDD using an String variable (for example words[i]) , instead of a fix

filter RDD by variable

2016-12-07 Thread Soheila S.
Hi I am new in Spark and have a question in first steps of Spark learning. How can I filter an RDD using an String variable (for example words[i]) , instead of a fix one like "Error"? Thanks a lot in advance. Soheila