Job-ready Courses with Certificates – Learn Today. Lead Tomorrow. › Forums › Apache Spark › Explain the lookup() operation This topic has 1 reply, 1 voice, and was last updated 7 years, 10 months ago by DataFlair Team. Viewing 1 reply thread Author Posts September 20, 2018 at 2:06 pm #5059 DataFlair TeamSpectator Explain the lookup() operation September 20, 2018 at 2:06 pm #5060 DataFlair TeamSpectator > It is an action > It returns the list of values in the RDD for key ‘key’ val rdd1 = sc.parallelize(Seq(("Spark",78),("Hive",95),("spark",15),("HBase",25),("spark",39),("BigData",78),("spark",49))) rdd1.lookup("spark") rdd1.lookup("Hive") rdd1.lookup("BigData") Output: Seq[Int] = WrappedArray(15, 39, 49) Seq[Int] = WrappedArray(95) Seq[Int] = WrappedArray(78) Author Posts Viewing 1 reply thread You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Signup / Login with Google Log In