Unable to parse Error on HORTONWORKS cluster

Reported for version 10

Problem

When working with BDE on a Hortonworks cluster, the following error is thrown:

Unable to parse '/hdp/apps/${hdp.version}/mapreduce/mapreduce.tar.gz#mr-framework' as a URI, check the setting for mapreduce.application.framework.path
Illegal character in path at index 11: /hdp/apps/${hdp.version}/mapreduce/mapreduce.tar.gz#mr-framework

Solution

The error is due to an unset ${hdp.version} property.

To prevent the error, add the following property definition to mapred-site.xml before ${hdp.version} is used:

<property>
	<name>hdp.version</name>
	<value>2.2.4.2-2</value>
</property>