You can create a stream for an HDFS file and have OpenCV read from the stream.
Other option is to create a yarn job and you can resource localize the HDFS 
file so you can run OpenCV just like any other application.

Thanks,
Ron

> On Jul 24, 2016, at 12:03 PM, Madhav Sharan <msha...@usc.edu> wrote:
> 
> Hi hadoop users,
> 
> I need some help in reading video files from HDFS. I am processing videos 
> using OpenCV and opencv is not able to read video file from hdfs. I tried 
> prefixing path with "hdfs://" but it still does not works. Is there a way we 
> can directly read from HDFS using opencv? 
> 
> 
> [0] Video capture code -  
> https://github.com/smadha/pooled_time_series/blob/master/src/main/java/gov/nasa/jpl/memex/pooledtimeseries/PoT.java#L441
>  
> <https://github.com/smadha/pooled_time_series/blob/master/src/main/java/gov/nasa/jpl/memex/pooledtimeseries/PoT.java#L441>
> 
> [1] TMP file solution - 
> https://github.com/smadha/pooled_time_series/blob/master/src/main/java/gov/nasa/jpl/memex/pooledtimeseries/OpticalTimeSeries.java#L66
>  
> <https://github.com/smadha/pooled_time_series/blob/master/src/main/java/gov/nasa/jpl/memex/pooledtimeseries/OpticalTimeSeries.java#L66>
> 
> --
> Madhav Sharan
> 

Reply via email to