PEGASUS-TC-CONVERT(1) | Pegasus Manual | PEGASUS-TC-CONVERT(1) |
NAME¶
pegasus-tc-converter - A client to convert transformation catalog from one format to another format.
SYNOPSIS¶
pegasus-tc-converter [-Dproperty=value...] [-v] [-q] [-V] [-h]
[-I fmt] [-O fmt]
[-N dbusername] [-P dbpassword] [-U dburl] [-H dbhost]
-i infile[,infile,...] -o outfile
DESCRIPTION¶
The tc-convert program is used to convert the transformation catalog from one format to another.
Currently, the following formats of transformation catalog exist:
Text
A sample entry in this format looks as follows:
tr example::keg:1.0 {
site isi {
profile env "JAVA_HOME" "/bin/java.1.6"
pfn "/path/to/keg"
arch "x86"
os "linux"
osrelease "fc"
osversion "4"
type "installed"
} }
File
RESOURCE LFN PFN TYPE SYSINFO PROFILES
A sample entry in this format looks as follows
isi example::keg:1.0 /path/to/keg INSTALLED INTEL32::LINUX:fc_4: env::JAVA_HOME="/bin/java.1.6"
Database
OPTIONS¶
-Dproperty=value
The -D option(s) must be the first option on the command line. CLI properties take precedence over the file-based properties of the same key.
-I fmt, --iformat fmt
-O fmt --oformat fmt The output format of the output file. Valid values for the output format are: File, Text, and Database.
-i infile[,infile,...] --input infile[,infile,...] The comma separated list of input files that need to be converted to a file in the format specified by the --oformat option.
-o outfile, --output outfile
Other Options¶
-N dbusername, --db-user-name dbusername
-P dbpassword, --db-user-pwd dbpassword
-U dburl, --db-url dburl
-H dbhost, --db-host dbhost
-v, --verbose
-q, --quiet
-V, --version
-h, --help
EXAMPLE¶
Text to file format conversion
pegasus-tc-converter -i tc.data -I File -o tc.txt -O Text -v
File to Database(new) format conversion
pegasus-tc-converter -i tc.data -I File -N mysql_user -P mysql_pwd -U jdbc:mysql://localhost:3306/tc -H localhost -O Database -v
Database (username, password, host, url specified in properties file) to text format conversion
pegasus-tc-converter -I Database -o tc.txt -O Text -vvvvv
AUTHORS¶
Prasanth Thomas
Pegasus Team http://pegasus.isi.edu
11/09/2018 | Pegasus 4.4.0 |