Spark and Tez Fail to Execute Jobs on Ambari Hortonworks Data Platform 2.5


When Datameer is configured with an auto cluster configuration, jobs fail to run on the Spark and Tez execution frameworks. However, jobs executed on MapReduce complete successfully.

When Datameer's Hadoop Cluster is manually configured, all jobs fail regardless of execution framework.

The following error is seen in the job log:

INFO [2016-12-06 17:39:20.017] [MrPlanRunnerV2] (Logging.scala:58) - Application report for application_APPLICATIONID (state: FAILED)
 INFO [2016-12-06 17:39:20.018] [MrPlanRunnerV2] (Logging.scala:58) - 
	 client token: N/A
	 diagnostics: Application application_APPLICATIONID failed 1 times (global limit =2; local limit is =1) due to AM Container for appattempt_CONTAINERID exited with  exitCode: 1
For more detailed output, check the application tracking page: http://HOSTNAME:PORT/cluster/app/application_APPLICATIONID Then click on links to logs of each attempt.
Diagnostics: Exception from container-launch.
Container id: container_CONTAINERID
Exit code: 1
Stack trace: ExitCodeException exitCode=1: 
	at org.apache.hadoop.util.Shell.runCommand(
	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(
	at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$

Container exited with a non-zero exit code 1



Ambari creates symlinks within the filesystem to resolve the location of Hadoop. These symlinks are present in the YARN application classpath and was used for the Datameer configuration. Symlinks cannot be resolved by remote configurations.

The path to the hadoop/conf folder appears as the following within the YARN application classpath:


Where 'current' is a symlink instead of the real path.



Correct the YARN application classpath on the Hadoop Cluster page within the Admin tab. 
Use either the fully qualified real paths, or use the hdp.version variable.

Example 1: Using the real path


Example 2: Using the hdp.version variable


Note: Make sure the hdp.version variable is uncommented and correctly set on the Hadoop Distribution Specific Properties section of the Hadoop Cluster page.