You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by sk...@apache.org on 2014/06/11 22:46:36 UTC
svn commit: r1602011 - in
/oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main:
assembly/assembly.xml resources/bin/ resources/bin/example-script.sh
resources/policy/example-pge-config.xml
Author: skhudiky
Date: Wed Jun 11 20:46:36 2014
New Revision: 1602011
URL: http://svn.apache.org/r1602011
Log:
OODT-708 Add PGE to RADiX Archetype - add examples and update pge directories with only bin and policy
Added:
oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/bin/
oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/bin/example-script.sh (with props)
oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/policy/example-pge-config.xml
Modified:
oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/assembly/assembly.xml
Modified: oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/assembly/assembly.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/assembly/assembly.xml?rev=1602011&r1=1602010&r2=1602011&view=diff
==============================================================================
--- oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/assembly/assembly.xml (original)
+++ oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/assembly/assembly.xml Wed Jun 11 20:46:36 2014
@@ -38,25 +38,6 @@
<fileMode>755</fileMode>
</fileSet>
<fileSet>
- <directory>target</directory>
- <outputDirectory>pge/logs</outputDirectory>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </fileSet>
- <fileSet>
- <directory>target</directory>
- <outputDirectory>pge/run</outputDirectory>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </fileSet>
- <fileSet>
- <directory>${basedir}/src/main/resources/etc</directory>
- <outputDirectory>pge/etc</outputDirectory>
- <includes/>
- </fileSet>
- <fileSet>
<directory>${basedir}/src/main/resources/policy</directory>
<outputDirectory>pge/policy</outputDirectory>
<includes/>
Added: oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/bin/example-script.sh
URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/bin/example-script.sh?rev=1602011&view=auto
==============================================================================
--- oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/bin/example-script.sh (added)
+++ oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/bin/example-script.sh Wed Jun 11 20:46:36 2014
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+echo "Hello World"
Propchange: oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/bin/example-script.sh
------------------------------------------------------------------------------
svn:executable = *
Added: oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/policy/example-pge-config.xml
URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/policy/example-pge-config.xml?rev=1602011&view=auto
==============================================================================
--- oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/policy/example-pge-config.xml (added)
+++ oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/pge/src/main/resources/policy/example-pge-config.xml Wed Jun 11 20:46:36 2014
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<pgeConfig>
+
+ <!-- How to run the PGE -->
+ <exe dir="[JobDir]" shell="/bin/bash">
+ <cmd>[PGE_HOME]/bin/example-script.sh > /tmp/HelloWorldPGE-[ProductionDateTime].output.txt</cmd>
+ </exe>
+
+ <!-- Files to ingest -->
+ <output>
+ </output>
+
+ <!-- Custom metadata to add to output files -->
+ <customMetadata>
+ <!-- helpful keys -->
+ <metadata key="LessThan" val="<"/>
+ <metadata key="LessThanOrEqualTo" val="[LessThan]="/>
+ <metadata key="GreaterThan" val=">"/>
+ <metadata key="GreaterThanOrEqualTo" val="[GreaterThan]="/>
+ <metadata key="Exclamation" val="!"/>
+ <metadata key="Ampersand" val="&"/>
+ <metadata key="NotEqualTo" val="[Ampersand]="/>
+ <metadata key="LogicalAnd" val="[Ampersand][Ampersand]"/>
+ <metadata key="CshPipeToStdOutAndError" val="[GreaterThan][Ampersand][Exclamation]"/>
+
+ <metadata key="ProductionDateTime" val="[DATE.UTC]"/>
+ </customMetadata>
+
+</pgeConfig>