Unable to apply count() on rdd in scala

scala

#1

in my lab,it is observed that in scala RDD is geting created but when i applied count() on its,its not working showing error as

org.apache.hadoop.mapred.InvalidInputException: Input path does not exist:

regards
vivek


#2

@vivek2

Can you rechek your path? You can try below example

val orders = sc.textFile("/public/retail_db/orders")

orders.count()