I'm trying to run a Hadoop streaming job to process geospatial data. To that end, I'm using [Shapely](https://pypi.python.org/pypi/Shapely) functions which require [libgeos](https://github.com/libgeos/libgeos). 

However, the job fails because libgeos is not installed on the cluster. 

Is there a way to ship libgeos to the cluster and have Shapely read `.so` files from the directory (maybe by `-archives` or `-files`)?

**Example of commands run**

```
hadoop jar /usr/lib/hadoop-mapreduce/hadoop-streaming.jar -D    stream.num.map.output.key.fields=2 -D mapred.text.key.partitioner.options=-k1,1 -archives hdfs://namenode:port/user/anaconda.zip#anaconda -files /some/other/stuff -input /path/to/input -output /user/geo_stuff -file /home/mr_files/mapper.py -mapper "mapper.py"

```

Where mapper.py starts off like...

```
#!./anaconda/anaconda/bin/python
import shapely
from cartopy.io import shapereader
from shapely.geometry import Point
...more stuff

```

And this generates the following error

```
from shapely.geos import lgeos
File "./anaconda/anaconda/lib/python2.7/site-packages/shapely/geos.py", line 58, in <module>
_lgeos = load_dll('geos_c', fallbacks=['libgeos_c.so.1', 'libgeos_c.so'])

File "./anaconda/anaconda/lib/python2.7/site-packages/shapely/geos.py", line 54, in load_dll
libname, fallbacks or []))

OSError: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']

```