0
For simplicity you can just add one more && expression in your initial expression as val employeesRdd=sc.textFile("file:///home/cloudera/Desktop/Employees/employees.txt").filter(p=>{p.length > 5 && p!=null && !p.substring(p.length-5).contains("2001")}) employeesRdd.foreach(println) will giv...