I recently start using SparkR. I have 1 master and 3 worker running and AWS. I am using RSudio Server. My codes involve stringr package, and this packages have been installed to /usr/share/R/library
on all nodes.
But when I run SparkR:::map(data, function(x){str_replace(x, "XXXX", "XXxxx")})
, i get the error
could not find function "str_replace"
How can I load packages on worker nodes?