Skip to content

Commit

Permalink
Updating batch samples with settings for Hortonworks HDP 2.2 Sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Risberg committed Feb 9, 2015
1 parent cf89fc5 commit 89b12b6
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<hadoop:configuration>
fs.defaultFS=${spring.hadoop.fsUri}
yarn.resourcemanager.hostname=${spring.hadoop.resourceManagerHost}
yarn.resourcemanager.address=${spring.hadoop.resourceManagerHost}:${spring.hadoop.resourceManagerPort}
mapreduce.framework.name=yarn
mapreduce.jobhistory.address=${spring.hadoop.resourceManagerHost}:10020
</hadoop:configuration>
Expand Down
19 changes: 18 additions & 1 deletion batch-hashtag-count/src/main/resources/yarn-site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,24 @@
<description>Classpath for typical applications.</description>
<name>yarn.application.classpath</name>
<value>
/etc/hadoop/conf,/usr/lib/hadoop/*,/usr/lib/hadoop/lib/*,/usr/lib/hadoop-hdfs/*,/usr/lib/hadoop-hdfs/lib/*,/usr/lib/hadoop-yarn/*,/usr/lib/hadoop-yarn/lib/*,/usr/lib/hadoop-mapreduce/*,/usr/lib/hadoop-mapreduce/lib/*
/etc/hadoop/conf,/usr/hdp/current/hadoop-client/*,/usr/hdp/current/hadoop-client/lib/*,/usr/hdp/current/hadoop-hdfs-client/*,/usr/hdp/current/hadoop-hdfs-client/lib/*,/usr/hdp/current/hadoop-mapreduce-client/*,/usr/hdp/current/hadoop-mapreduce-client/lib/*,/usr/hdp/current/hadoop-yarn-client/*,/usr/hdp/current/hadoop-yarn-client/lib/*
</value>
</property>
<property>
<description>Java opts for the MR App Master processes.</description>
<name>yarn.app.mapreduce.am.command-opts</name>
<value>-Dhdp.version=2.2.0.0-2041</value>
</property>
<property>
<description>Path to the MapReduce framework archive.</description>
<name>mapreduce.application.framework.path</name>
<value>/hdp/apps/2.2.0.0-2041/mapreduce/mapreduce.tar.gz#mr-framework</value>
</property>
<property>
<description>CLASSPATH for MR applications.</description>
<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/*:/etc/hadoop/conf/secure
</value>
</property>
-->
Expand Down
2 changes: 1 addition & 1 deletion batch-hive/src/main/resources/config/spring-module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<hadoop:configuration>
fs.defaultFS=${spring.hadoop.fsUri}
yarn.resourcemanager.hostname=${spring.hadoop.resourceManagerHost}
yarn.resourcemanager.address=${spring.hadoop.resourceManagerHost}:${spring.hadoop.resourceManagerPort}
mapreduce.framework.name=yarn
mapreduce.jobhistory.address=${spring.hadoop.resourceManagerHost}:10020
</hadoop:configuration>
Expand Down
2 changes: 1 addition & 1 deletion batch-pig/src/main/resources/config/spring-module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<hadoop:configuration>
fs.defaultFS=${spring.hadoop.fsUri}
yarn.resourcemanager.hostname=${spring.hadoop.resourceManagerHost}
yarn.resourcemanager.address=${spring.hadoop.resourceManagerHost}:${spring.hadoop.resourceManagerPort}
mapreduce.framework.name=yarn
mapreduce.jobhistory.address=${spring.hadoop.resourceManagerHost}:10020
</hadoop:configuration>
Expand Down
19 changes: 18 additions & 1 deletion batch-pig/src/main/resources/yarn-site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,24 @@
<description>Classpath for typical applications.</description>
<name>yarn.application.classpath</name>
<value>
/etc/hadoop/conf,/usr/lib/hadoop/*,/usr/lib/hadoop/lib/*,/usr/lib/hadoop-hdfs/*,/usr/lib/hadoop-hdfs/lib/*,/usr/lib/hadoop-yarn/*,/usr/lib/hadoop-yarn/lib/*,/usr/lib/hadoop-mapreduce/*,/usr/lib/hadoop-mapreduce/lib/*
/etc/hadoop/conf,/usr/hdp/current/hadoop-client/*,/usr/hdp/current/hadoop-client/lib/*,/usr/hdp/current/hadoop-hdfs-client/*,/usr/hdp/current/hadoop-hdfs-client/lib/*,/usr/hdp/current/hadoop-mapreduce-client/*,/usr/hdp/current/hadoop-mapreduce-client/lib/*,/usr/hdp/current/hadoop-yarn-client/*,/usr/hdp/current/hadoop-yarn-client/lib/*
</value>
</property>
<property>
<description>Java opts for the MR App Master processes.</description>
<name>yarn.app.mapreduce.am.command-opts</name>
<value>-Dhdp.version=2.2.0.0-2041</value>
</property>
<property>
<description>Path to the MapReduce framework archive.</description>
<name>mapreduce.application.framework.path</name>
<value>/hdp/apps/2.2.0.0-2041/mapreduce/mapreduce.tar.gz#mr-framework</value>
</property>
<property>
<description>CLASSPATH for MR applications.</description>
<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/*:/etc/hadoop/conf/secure
</value>
</property>
-->
Expand Down

0 comments on commit 89b12b6

Please sign in to comment.