Additional Configuration for YARN Shims
Prerequisite: Make sure that your client has been configured so it can access any node in your cluster.
- Set the active Hadoop distribution.
- Configure the cluster settings.
- Navigate to the folder that contains the shim, then open the yarn-site.xml file in a text editor. Adjust the following parameters as needed.
Parameter |
Values |
---|---|
yarn.application.classpath |
|
yarn.resourcemanger.hostname |
|
yarn.resourcemanager.address |
|
yarn.resourcemanager.admin.address |
|
There are a few more things that you need to do:
4. (CDH 5.1 and 5.2 only): * Navigate to the folder that contains the shim, then open the hive-site.xml file in a text editor. Modify the hive.metastore.uris property so that it points to the location of your hive metastore. Save and close the hive-site.xml file.
5. (All shims): Navigate to the folder that contains the shim, then open the mapred-site.xml file, in a text editor. Then make the changes in the table.
Parameter |
Value |
---|---|
mapreduce.jobhistory.address |
Set this to the place where job history logs are stored. |
mapreduce.app-submission.cross-platform |
Add this parameter to the mapred-site.xml file between the <property> tags, then set it to true, like this: <name>mapreduce.app-submission.cross-platform</name> <value>true</value> |
6. (HDP 2.2): In the mapred-site.xml file, make the changes shown in the table.
Parameter |
Value |
---|---|
mapreduce.application.classpath |
Add this parameter to the mapred-site.xml file between the <property> tags. <property> <name>mapreduce.application.classpath</name> <value>$PWD/mr-framework/hadoop/share/hadoop/mapreduce/*:$PWD/mr-framework/hadoop/share/hadoop/mapreduce/lib/*:$PWD/mr-framework/hadoop/share/hadoop/common/*:$PWD/mr-framework/hadoop/share/hadoop/common/lib/*:$PWD/mr-framework/hadoop/share/hadoop/yarn/*:$PWD/mr-framework/hadoop/share/hadoop/yarn/lib/*:$PWD/mr-framework/hadoop/share/hadoop/hdfs/*:$PWD/mr-framework/hadoop/share/hadoop/hdfs/lib/*:/usr/hdp/${hdp.version}/hadoop/lib/hadoop-lzo-0.6.0.${hdp.version}.jar:/etc/hadoop/conf/secure</value> </property>
|
mapreduce.application.framework.path |
Add this parameter to the mapred-site.xml file between the <property> tags. <property> <name>mapreduce.application.framework.path</name> <value>/hdp/apps/${hdp.version}/mapreduce/mapreduce.tar.gz#mr-framework</value> </property>
|
7. (HDP 2.2 only) In the HDP configuration.properties file on the client, add the following line.
java.system.hdp.version=2.2.0.0-2041
Note: Not all shim properties can be set in the Spoon user interface, nor are instructions for modifying them listed here. If you need to set additional properties that are not addressed in these instructions, you will need to set them manually in the *-site.xml files that are in the shim directory. Consult your Hadoop distribution's vendor for details about the properties you want to set.
High Availability for CDH 5.3
Note: If you are configuring CDH 5.3 to be used in High Availability mode, we recommend that you use the Cloudera Manager "Download Client Configuration" feature. The Download Client Configuration feature provides a convenient way to get configuration files from the cluster for a service (such as HBase, HDFS, or Yarn). Use this feature to download the unzip the configuration zip files to the pentaho-big-data-plugin/hadoop-configurations/cdh5x directory.
For more information on how to do this, see Cloudera documentation:
http://www.cloudera.com/content/cloudera/en/documentation/core/v5-3-x/topics/cm_mc_client_config.html.