It seems that HDP 2 Sandbox from Hortonworks does not work as it is with Hunk running on it. The data preview stuff works perfectly fine but Hunk gives you error when you want to run Mapreduce jobs with the following error:
Application application_1386035090053_0009 failed 2 times due to AM Container for appattempt_1386035090053_0009_000002 exited with exitCode: 1 due to: Exception from container-launch:
.Failing this attempt.. Failing the application.
After a lot of investigation, it turned out this is a memory issue with Yarn. We expected by default Yarn has 8192 MB memory; however, it is set to 2048 in configuration file and that is why Mapreduce jobs will never end (it goes to idle mode). The worst part is that the error is not very helpful either. To fix this issue you need to allocate more memory to Yarn on the node by changing the following property in yarn-site.xml
You need to make sure you have enough memory assigned to your sandbox. My sandbox has 8 gig of RAM and I assigned 5120 MB to Yarn.