5 # Finding out own path in order to reference own components (including own modules):
9 $ENV{
'EHIVE_ROOT_DIR'} ||= File::Basename::dirname( File::Basename::dirname( Cwd::realpath($0) ) );
10 unshift @INC, $ENV{
'EHIVE_ROOT_DIR'}.
'/modules';
13 use Getopt::Long qw(:config no_auto_abbrev);
26 my ($url, $reg_conf, $reg_type, $reg_alias, $nosqlvc, $job_id, $help);
30 # Connection parameters:
32 'reg_conf|regfile|reg_file=s' => \$reg_conf,
33 'reg_type=s' => \$reg_type,
34 'reg_alias|regname|reg_name=s' => \$reg_alias,
35 'nosqlvc' => \$nosqlvc, #
using "nosqlvc" instead of
"sqlvc!" for consistency with scripts where it is a propagated option
37 # Task specification parameters:
38 'job_id=i' => \$job_id,
42 ) or die "Error in command line arguments\n";
45 die
"ERROR: There are invalid arguments on the command-line: ". join(
" ", @ARGV).
"\n";
48 if ($help || !$job_id) {
49 pod2usage({-exitvalue => 0, -verbose => 2});
54 if($url or $reg_alias) {
58 -reg_conf => $reg_conf,
59 -reg_type => $reg_type,
60 -reg_alias => $reg_alias,
61 -no_sql_schema_version_check => $nosqlvc,
63 # $pipeline->hive_dba()->dbc->requires_write_access();
66 die
"\nERROR: Connection parameters (url or reg_conf+reg_alias) need to be specified\n";
69 unless($pipeline->hive_dba) {
70 die
"ERROR : no database connection, the pipeline could not be accessed\n\n";
87 peekJob.pl is an eHive component script that allows us to peek into the parameters of a given job.
91 # Check the params for job 123456
92 peekJob.pl -url mysql:
96 =head2 Connection parameters:
100 =item --reg_conf <path>
102 path to a Registry configuration file
104 =item --reg_alias <string>
106 species/alias name
for the eHive DBAdaptor
108 =item --reg_type <string>
110 type of the registry entry (
"hive",
"core",
"compara", etc - defaults to
"hive")
112 =item --url <url string>
114 URL defining where database is located
118 "No SQL Version Check" - set
if you want to force working with a database created by a potentially schema-incompatible API
122 =head2 Task specification parameters:
128 which Job (as defined by its database
id) to peek at
132 =head2 Other options:
144 See the NOTICE file distributed with
this work
for additional information
145 regarding copyright ownership.
147 Licensed under the Apache License, Version 2.0 (the
"License"); you may not use
this file except in compliance with the License.
148 You may obtain a copy of the License at
152 Unless required by applicable law or agreed to in writing, software distributed under the License
153 is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
154 See the License
for the specific language governing permissions and limitations under the License.
158 Please subscribe to the eHive mailing list: http: