First configure your Sandbox to use Java 7:
sudo yum install -y java-1.7.0-openjdk
Select Java 7
sudo /usr/sbin/alternatives --config java
This will show on the terminal window:
There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
+ 1 /usr/java/jdk1.6.0_35/jre/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
* 3 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
Enter to keep the current selection[+], or type selection number:
Select java 1.7 out of the menu options by typing the correct number (here it’s 3).
All the application resources are available on the GitHub repository: https://github.com/Terradue/dcs-beam-flh-java
To install the application clone the repository on the sandbox in your home folder:
cd ~
git clone https://github.com/Terradue/dcs-beam-flh-java.git
cd dcs-beam-flh-java
Update the Application descriptor file to use the Sandbox catalogue with the data you’ve copied:
vi src/main/app-resources/application.xml
And change the source from:
<sources>
<source refid="cas:series">http://catalogue.terradue.int/catalogue/search/MER_RR__1P/description</source>
</sources>
To:
<sources>
<source refid="cas:series">http://localhost/catalogue/sandbox/MER_RR__1P/description</source>
</sources>
Then build the BEAM FLH Java processor and the application resources with:
mvn install
The maven command will:
The Application Descriptor file can be checked against the schema with:
ciop-appcheck
If the Application Descriptor is valid, the output is:
/application/application.xml validates
The application requires ESA BEAM Toolbox to compile and run.
All dependencies are listed in the pom.xml and downloaded during the mvn install execution.
There are two approaches to test an application:
Both approaches use the command line utility ciop-run [1].
List the nodes of a workflow:
ciop-run -n
This command returns:
node_flh
Trigger the execution of the node_flh with:
ciop-run node_flh
The node_flh will produce one tiff image file per input Envisat MERIS Level 1 product.
These files are all available in the Sandbox Hadoop distributed filesystem. See Hands-on Exercise 8 - browse published results on how to access the HDFS filesystem through the Web interface.
ciop-run
Wait for the workflow execution.
Footnotes
[1] | ciop-run man page |