hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [hadoop] elek commented on a change in pull request #653: HDDS-1333. OzoneFileSystem can't work with spark/hadoop2.7 because incompatible security classes
Date Mon, 01 Apr 2019 15:56:14 GMT
elek commented on a change in pull request #653: HDDS-1333. OzoneFileSystem can't work with
spark/hadoop2.7 because incompatible security classes
URL: https://github.com/apache/hadoop/pull/653#discussion_r270937426
 
 

 ##########
 File path: hadoop-ozone/dist/dev-support/bin/dist-layout-stitching
 ##########
 @@ -114,6 +114,7 @@ run cp "${ROOT}/hadoop-ozone/objectstore-service/target/hadoop-ozone-objectstore
 cp -r "${ROOT}/hadoop-hdds/docs/target/classes/docs" ./
 
 #Copy docker compose files
-run cp -p -R "${ROOT}/hadoop-ozone/dist/src/main/compose" .
+#compose files are preprocessed: properties (eg. project.version) are replaced first by maven.
+run cp -p -R "${ROOT}/hadoop-ozone/dist/target/compose" .
 
 Review comment:
   Sure. It's a good question.
   
   Until now we used wildcard in the docker-compose.yaml to define the classpath, independent
from the current version:
   
   ```
   HADOOP_CLASSPATH: /opt/ozone/share/ozone/lib/hadoop-ozone-filesystem-lib-current*.jar
   ```
   
   Unfortunately it didn't work all the time. When I executed a command from the container
(after `docker-compose exec scm`) the jar file is not added to the classpath.
   
   I modified the docker-compose file to use the exact jar file. To make it version independent
instead of the simple copy I replace the current version with maven (filtering) and copy to
preprocessed version to the final destination with dist-layout-stitching script.
   
   Old version: src/main/compose ---[copy with dist-layout-stitching]---> destination dir
 
   New version: src/main/compose ---[copy and replace version with maven]---> target/compose
---[dist layout stiching] --> destination dir

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message