Revision 48424
Added by Marek Horst almost 7 years ago
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/src/main/java/eu/dnetlib/iis/IntegrationTest.java | ||
---|---|---|
1 |
package eu.dnetlib.iis; |
|
2 |
|
|
3 |
/** |
|
4 |
* Integration test markup. |
|
5 |
* @author mhorst |
|
6 |
* |
|
7 |
*/ |
|
8 |
public interface IntegrationTest {} |
|
0 | 9 |
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/src/main/resources/commands/print_working_dir.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
echo "" |
|
3 |
echo "---->Contents of the working directory" |
|
4 |
hadoop fs -ls ${workingDir} |
|
5 |
|
|
0 | 6 |
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/src/main/resources/commands/get_working_dir.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
hadoop fs -get ${workingDir} |
|
3 |
|
|
0 | 4 |
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/src/main/resources/commands/run_workflow.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
|
|
3 |
if [ $# == "0" ] ; then |
|
4 |
oozie job -oozie ${oozieServiceLoc} -config job.properties -run |
|
5 |
else |
|
6 |
oozie job -oozie ${oozieServiceLoc} -config $1/job.properties -run |
|
7 |
fi |
|
8 |
|
|
9 |
|
|
10 |
|
|
0 | 11 |
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/src/main/resources/commands/upload_workflow.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
set -x ## print every executed command |
|
3 |
|
|
4 |
|
|
5 |
if [ $# == "0" ] ; then |
|
6 |
target_dir_root=`pwd`'/${oozieAppDir}' |
|
7 |
else |
|
8 |
target_dir_root=`readlink -f $1`'/${oozieAppDir}' |
|
9 |
fi |
|
10 |
|
|
11 |
# initial phase, creating symbolic links to jars in all subworkflows |
|
12 |
# currently disabled |
|
13 |
#libDir=$target_dir_root'/lib' |
|
14 |
#dirs=`find $target_dir_root/* -maxdepth 10 -type d` |
|
15 |
#for dir in $dirs |
|
16 |
#do |
|
17 |
# if [ -f $dir/workflow.xml ] |
|
18 |
# then |
|
19 |
# echo "creating symbolic links to jars in directory: $dir/lib" |
|
20 |
# if [ ! -d "$dir/lib" ]; then |
|
21 |
# mkdir $dir/lib |
|
22 |
# fi |
|
23 |
# find $libDir -type f -exec ln -s \{\} $dir/lib \; |
|
24 |
# fi |
|
25 |
#done |
|
26 |
|
|
27 |
|
|
28 |
#uploading |
|
29 |
hadoop fs -rm -r ${sandboxDir} |
|
30 |
hadoop fs -mkdir -p ${sandboxDir} |
|
31 |
hadoop fs -mkdir -p ${workingDir} |
|
32 |
hadoop fs -put $target_dir_root ${sandboxDir} |
|
0 | 33 |
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/src/main/resources/commands/readme.markdown | ||
---|---|---|
1 |
Execute the scripts in the following order: |
|
2 |
|
|
3 |
1. `upload_workflow.sh` |
|
4 |
2. `run_workflow.sh` |
|
5 |
3. `print_working_dir.sh` or `get_working_dir.sh` |
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/src/main/resources/project-default.properties | ||
---|---|---|
1 |
#sandboxName when not provided explicitly will be generated |
|
2 |
sandboxName=${sandboxName} |
|
3 |
sandboxDir=/user/${iis.hadoop.frontend.user.name}/${sandboxName} |
|
4 |
workingDir=${sandboxDir}/working_dir |
|
5 |
oozie.wf.application.path = ${nameNode}${sandboxDir}/${oozieAppDir} |
|
6 |
|
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/src/main/resources/assemblies/oozie-installer.xml | ||
---|---|---|
1 |
<assembly |
|
2 |
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" |
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> |
|
5 |
|
|
6 |
<id>oozie-installer</id> |
|
7 |
<formats> |
|
8 |
<format>dir</format> |
|
9 |
</formats> |
|
10 |
|
|
11 |
<fileSets> |
|
12 |
<fileSet> |
|
13 |
<filtered>true</filtered> |
|
14 |
<directory>${project.build.directory}/assembly-resources/commands</directory> |
|
15 |
<!-- |
|
16 |
dziala dla (lokalnie zasoby modulu): |
|
17 |
<directory>src/main/resources</directory> |
|
18 |
nie dziala dla: |
|
19 |
<directory>classpath:/commands</directory> |
|
20 |
<directory>commands</directory> |
|
21 |
<directory>classpath/src/main/resources</directory> |
|
22 |
--> |
|
23 |
<outputDirectory>/</outputDirectory> |
|
24 |
<includes> |
|
25 |
<include>**/*</include> |
|
26 |
</includes> |
|
27 |
<fileMode>0755</fileMode> |
|
28 |
</fileSet> |
|
29 |
</fileSets> |
|
30 |
<baseDirectory>/</baseDirectory> |
|
31 |
</assembly> |
|
0 | 32 |
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/src/main/resources/assemblies/tests.xml | ||
---|---|---|
1 |
<assembly |
|
2 |
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" |
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> |
|
5 |
|
|
6 |
<id>tests</id> |
|
7 |
<formats> |
|
8 |
<format>jar</format> |
|
9 |
</formats> |
|
10 |
<includeBaseDirectory>false</includeBaseDirectory> |
|
11 |
<fileSets> |
|
12 |
<fileSet> |
|
13 |
<directory>${project.build.testOutputDirectory} |
|
14 |
</directory> |
|
15 |
<outputDirectory /> |
|
16 |
</fileSet> |
|
17 |
</fileSets> |
|
18 |
<!-- <dependencySets> |
|
19 |
<dependencySet> |
|
20 |
<useProjectArtifact>false</useProjectArtifact> |
|
21 |
<outputDirectory>lib</outputDirectory> |
|
22 |
</dependencySet> |
|
23 |
</dependencySets>--> |
|
24 |
</assembly> |
|
0 | 25 |
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<parent> |
|
4 |
<groupId>eu.dnetlib</groupId> |
|
5 |
<artifactId>dnet45-parent</artifactId> |
|
6 |
<version>1.0.0</version> |
|
7 |
</parent> |
|
8 |
<modelVersion>4.0.0</modelVersion> |
|
9 |
<artifactId>icm-iis-assembly-resources</artifactId> |
|
10 |
<packaging>jar</packaging> |
|
11 |
<version>1.0.1</version> |
|
12 |
|
|
13 |
<scm> |
|
14 |
<developerConnection> |
|
15 |
scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1 |
|
16 |
</developerConnection> |
|
17 |
</scm> |
|
18 |
|
|
19 |
<distributionManagement> |
|
20 |
<repository> |
|
21 |
<id>dnet45-bootstrap-release</id> |
|
22 |
<url> |
|
23 |
http://maven.research-infrastructures.eu/nexus/content/repositories/dnet45-bootstrap-release |
|
24 |
</url> |
|
25 |
</repository> |
|
26 |
</distributionManagement> |
|
27 |
|
|
28 |
</project> |
modules/icm-iis-assembly-resources/tags/icm-iis-assembly-resources-1.0.1/README.markdown | ||
---|---|---|
1 |
Module utilized by `icm-iis-parent-container`. |
|
2 |
Contains all required resources by this parent module: |
|
3 |
* IntegrationTest interface markup required for distinguishing unit tests from integration tests |
|
4 |
* assembly XML definitions |
|
5 |
* build shell scripts |
|
6 |
* oozie package commands for uploading, running and monitoring oozie workflows |
Also available in: Unified diff
[maven-release-plugin] copy for tag icm-iis-assembly-resources-1.0.1