HDDS-1385. Make the ozonesecure-mr environment definition version independent. Contributed by Elek, Marton. (#695)
This commit is contained in:
parent
7ec6a31eb3
commit
d758c97873
|
@ -19,7 +19,7 @@ to Ozone OM/SCM/NM/DN and Kerberos KDC.
|
|||
## Basic setup
|
||||
|
||||
```
|
||||
cd $(git rev-parse --show-toplevel)/hadoop-ozone/dist/target/ozone-*-SNAPSHOT/compose/ozonesecure-mr
|
||||
cd $(git rev-parse --show-toplevel)/hadoop-ozone/dist/target/ozone-@project.version@/compose/ozonesecure-mr
|
||||
|
||||
docker-compose up -d
|
||||
```
|
||||
|
@ -47,7 +47,7 @@ docker-compose exec rm bash
|
|||
kinit -kt /etc/security/keytabs/hadoop.keytab hadoop/rm@EXAMPLE.COM
|
||||
export HADOOP_MAPRED_HOME=/opt/hadoop/share/hadoop/mapreduce
|
||||
|
||||
export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/opt/hadoop/share/hadoop/mapreduce/*:/opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-*-SNAPSHOT.jar
|
||||
export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/opt/hadoop/share/hadoop/mapreduce/*:/opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-@project.version@.jar
|
||||
|
||||
hadoop fs -mkdir /user
|
||||
hadoop fs -mkdir /user/hadoop
|
||||
|
@ -70,4 +70,4 @@ yarn jar $HADOOP_MAPRED_HOME/hadoop-mapreduce-examples-*.jar pi 10 100
|
|||
### RandomWrite
|
||||
```
|
||||
yarn jar $HADOOP_MAPRED_HOME/hadoop-mapreduce-examples-*.jar randomwriter -Dtest.randomwrite.total_bytes=10000000 o3fs://bucket1.vol1/randomwrite.out
|
||||
```
|
||||
```
|
||||
|
|
|
@ -86,7 +86,7 @@ services:
|
|||
env_file:
|
||||
- ./docker-config
|
||||
environment:
|
||||
HADOOP_CLASSPATH: /opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-0.5.0-SNAPSHOT.jar
|
||||
HADOOP_CLASSPATH: /opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-@project.version@.jar
|
||||
command: ["yarn", "resourcemanager"]
|
||||
nm:
|
||||
image: apache/hadoop:${HADOOP_VERSION}
|
||||
|
@ -96,7 +96,7 @@ services:
|
|||
env_file:
|
||||
- ./docker-config
|
||||
environment:
|
||||
HADOOP_CLASSPATH: /opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-0.5.0-SNAPSHOT.jar
|
||||
HADOOP_CLASSPATH: /opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-@project.version@.jar
|
||||
WAIT_FOR: rm:8088
|
||||
command: ["yarn","nodemanager"]
|
||||
jhs:
|
||||
|
@ -109,6 +109,6 @@ services:
|
|||
env_file:
|
||||
- ./docker-config
|
||||
environment:
|
||||
HADOOP_CLASSPATH: /opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-0.5.0-SNAPSHOT.jar
|
||||
HADOOP_CLASSPATH: /opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-@project.version@.jar
|
||||
WAIT_FOR: rm:8088
|
||||
command: ["yarn","timelineserver"]
|
||||
|
|
|
@ -72,7 +72,7 @@ MAPRED-SITE.XML_mapreduce.reduce.env=HADOOP_MAPRED_HOME=$HADOOP_HOME
|
|||
MAPRED-SITE.XML_mapreduce.map.memory.mb=2048
|
||||
MAPRED-SITE.XML_mapreduce.reduce.memory.mb=2048
|
||||
#MAPRED-SITE.XML_mapred.child.java.opts=-Xmx2048
|
||||
MAPRED-SITE.XML_mapreduce.application.classpath=/opt/hadoop/share/hadoop/mapreduce/*:/opt/hadoop/share/hadoop/mapreduce/lib/*:/opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-0.5.0-SNAPSHOT.jar
|
||||
MAPRED-SITE.XML_mapreduce.application.classpath=/opt/hadoop/share/hadoop/mapreduce/*:/opt/hadoop/share/hadoop/mapreduce/lib/*:/opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current-@project.version@.jar
|
||||
|
||||
YARN-SITE.XML_yarn.app.mapreduce.am.staging-dir=/user
|
||||
YARN_SITE.XML_yarn.timeline-service.enabled=true
|
||||
|
|
Loading…
Reference in New Issue