Help with Deployment of complex application using Boinc Wrapper

Message boards : API : Help with Deployment of complex application using Boinc Wrapper
Message board moderation

To post messages, you must log in.

AuthorMessage
Wei Hao

Send message
Joined: 13 Dec 13
Posts: 21
United States
Message 52611 - Posted: 17 Feb 2014, 17:53:57 UTC
Last modified: 17 Feb 2014, 17:56:46 UTC

Hi all.
I successfully get the sample "worker" application(Which extracts the first line of a text file) deployed as a boinc project. Now I am trying some real world applications. Such as transforming a HDF5 file to an image with geo-location information.

The package is something like this,
boincadm@ip-100-122-76-123:/home/ubuntu/SPA/h2g/algorithm$ ls -l
total 56
drwxrwxr-x 2 ubuntu ubuntu 4096 Sep 16 19:39 bin
-rwxrwxr-x 1 ubuntu ubuntu 548 Sep 11 2009 build64bit.sh
-rwxrwxr-x 1 ubuntu ubuntu 205 Sep 29 2009 build_javadoc.sh
drwxrwxr-x 2 ubuntu ubuntu 4096 Sep 16 19:39 classes
drwxrwxr-x 2 ubuntu ubuntu 4096 Sep 16 19:39 colormaps
drwxrwxr-x 2 ubuntu ubuntu 4096 Sep 16 19:39 configFiles
-rwxrwxr-x 1 ubuntu ubuntu 448 Feb 20 2012 configure-ipopp-projection
drwxrwxr-x 3 ubuntu ubuntu 4096 Sep 16 19:39 docs
drwxrwxr-x 4 ubuntu ubuntu 4096 Sep 16 19:39 eosnppstations
drwxrwxr-x 3 ubuntu ubuntu 4096 Sep 16 19:39 lib32
drwxrwxr-x 5 ubuntu ubuntu 4096 Sep 16 19:39 lib64
drwxrwxr-x 4 ubuntu ubuntu 4096 Sep 16 19:39 OLD
drwxrwxr-x 3 ubuntu ubuntu 4096 Sep 16 19:39 src
drwxrwxr-x 4 ubuntu ubuntu 4096 Sep 16 19:39 tileStations

And the command line that invoke the application is something like this,

/home/ubuntu/SPA/h2g/algorithm/bin/h2g.sh /home/ubuntu/SPA/h2g/wrapper/h2g/../../algorithm standard lst dataset /home/ubuntu/SPA/h2g/testdata/inpu
t/LST.08085185938.hdf geoloc /home/ubuntu/SPA/h2g/testdata/input/MYD03.08085185938.hdf mask /home/
ubuntu/SPA/h2g/testdata/input/MYD014.08085185938.hdf otype geotiff.u8cm output ./LST.tif projection DEFAULT resolution -999.0
centerlat -999.0 centerlon -999.0 height_lat -999.0 width_lon -999.0 height_km -999.0 width_km -999.0


The h2g.sh script is something like this,
$ cat /home/ubuntu/SPA/h2g/algorithm/bin/h2g.sh
#!/bin/bash
case $0 in
/*) H2G_HOME="`dirname $0`/.." ;;
*) PWD=`pwd`; H2G_HOME="`dirname $PWD/$0`/.." ;;
esac
LIB=$H2G_HOME/lib64
#LIB=$H2G_HOME/lib64
java \
-Xmx2g \
-Djava.library.path=$LIB/linux:$LIB/proj \
-Djava.awt.headless=true \
-classpath \
$LIB/jproj.jar:\
$LIB/h2g.jar:\
$LIB/jhdf5.jar:\
$LIB/jhdf5obj.jar:\
$LIB/jhdf4obj.jar:\
$LIB/jhdf.jar:\
$LIB/jhdfobj.jar:\
$LIB/jai_imageio.jar \
gov.nasa.gsfc.drl.h2g.Create $@

And there are some dependent libraries,
:/home/ubuntu/SPA/h2g/algorithm/lib64$ tree
.
├── ext
│   ├── fitsobj.jar
│   └── nc2obj.jar
├── fits.jar
├── h2g.jar
├── jai_imageio.jar
├── jhdf4obj.jar
├── jhdf5.jar
├── jhdf5obj.jar
├── jhdf.jar
├── jhdfobj.jar
├── jhdfview.jar
├── jproj.jar
├── junit.jar
├── linux
│   ├── libhdf4.settings
│   ├── libhdf5.settings
│   ├── libjhdf5.so
│   └── libjhdf.so
├── netcdf.jar
└── proj
├── COPYING
├── libproj.a
├── libproj.so -> libproj.so.0.5.5
├── libproj.so.0 -> libproj.so.0.5.5
└── libproj.so.0.5.5

So the successful running of the application depends on a bunch of jar files and some dynamic libraries.

I did not find detailed instructions on how to deploy/wrap this kind of application.
And I have several questions here,
-Is there any xml file to specify the location of the java libraries and other dynamic linked libraries?
- How to make the client know where to download the whole directories? Should I make a zip file for the client to download and then how the client will know to unzip the binary directories.
- How to configure the application read in multiple input files?

Thanks,
ID: 52611 · Report as offensive

Message boards : API : Help with Deployment of complex application using Boinc Wrapper

Copyright © 2018 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.