python - How to access image files from within executable that is called by hadoop mapper -


i have opencv function written in c++ , compiled binary in linux. function takes image file location source , processes , gives value output.

now, using hadoop streaming has mapper written in python calls binary process image. input mapper text file each line has image file path.

so far:

first tested streaming mapreduce system call instead of calling img processing exe , works expected. have made libraries needed binary such opencv libraries etc. tested mapreduce giving empty file location image processing binary. works supposed , gives embedded error msg within binary output. completes map , reduce , gives output.

issues , questions:

but when give actual image location binary. mapreduce fails saying error streaming.streamjob: job not successful. error: na

any ideas on how give file location binary? or should read image in mapper , send image data binary called exe?


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -