kstyrc / embedded-redis

Redis embedded server for Java integration testing
840 stars 368 forks source link

When running from a Spark job inside EMR, it can't find the redis resource #73

Open ashic opened 7 years ago

ashic commented 7 years ago

Spark runs on Yarn in EMR, and the default new RedisServer(port) constructor fails there with:

java.lang.IllegalArgumentException: resource redis-server-2.8.19 not found.
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)
    at com.google.common.io.Resources.getResource(Resources.java:152)

It seems URL url = loader.getResource(resourceName); results in url being null.