I found a solution that works: using the pyspark 1.2.0 binary, the job is done. It is marked as experimental, but I was able to read tiff images with the proper combination of openCV.
import cv2 import numpy as np
Check out pyspark's help:
binaryFiles(path, minPartitions=None) :: Experimental Read a directory of binary files from HDFS, a local file system (available on all nodes), or any Hadoop-supported file system URI as a byte array. Each file is read as a single record and returned in a key-value pair, where the key is the path of each file, the value is the content of each file. Note: Small files are preferred, large file is also allowable, but may cause bad performance.
MathiasOrtner
source share