MATLAB: Hadoop deployable application can’t find MCR

hadoopjavamapreducemcr

I'm trying to run this example and I'm able to successfully compile the application, but when I try to run run_maxArrivalDelay.sh I get java errors:
java.lang.Exception: java.lang.UnsatisfiedLinkError: Failed to find the required library libmwmclmcrrt.so.9.0 on java.library.path.
This library is typically installed along with MATLAB or the MCR. Its absence may indicate an issue with that installation or the current path configuration.
The MCR version that this component is trying to use is: 9.0.
at org.apache.hadoop.mapred.LocalJobRunner$Job.runTasks(LocalJobRunner.java:462)
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:522)
I have the MCR installed and I updated the LD_LIBRARY_PATH using
EXPORT LD_LIBRARY_PATH=$LD_LIBRARY_PATH:[What the MCR installer said]
I checked the permissions for the folders and files on the MCR installation and set them to 777 (all users read/write/execute), then changed the owner of the folders from root to the user configured with hadoop, but I still can't get the thing to run.
Has anyone run into and solved this problem?

Best Answer

Wrong version of MCR, just needed to install the correct version.
I'm getting the job to run now but I don't get the results in the example , if I cat the results I get:
SEQ%com.mathworks.hadoop.MxArrayWritable2%com.mathworks.hadoop.MxArrayWritable2>
Related Question