You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using hadoop-utils in my web app (spring) to implement a wordcount big data example. I can read/write to HDFS but cannot run wordcount in YARN cluster. The snippet code is as follows:
These code will report "No valid local directories in property: mapred.local.dir" error. So I added the configuration then the error disappeared but it only runs the wordcount locally. Not running it in the remote yarn cluster.
yarnConf.set("mapred.local.dir","/tmp");
And I checked the app VCAP_SERVICES env, the yarn field is there and seems ok:
Hi,
I am using hadoop-utils in my web app (spring) to implement a wordcount big data example. I can read/write to HDFS but cannot run wordcount in YARN cluster. The snippet code is as follows:
These code will report "No valid local directories in property: mapred.local.dir" error. So I added the configuration then the error disappeared but it only runs the wordcount locally. Not running it in the remote yarn cluster.
And I checked the app VCAP_SERVICES env, the yarn field is there and seems ok:
Can you help with this? thanks in advance.
The text was updated successfully, but these errors were encountered: