Changeset 27525


Ignore:
Timestamp:
2013-06-04T09:27:12+12:00 (11 years ago)
Author:
jmt12
Message:

Adding in a 'isHDFS()' function so that some plugins (SimpleVideoPlug) can know to move the files where other executables (HandbrakeCLI etc) can see them

Location:
gs2-extensions/parallel-building/trunk/src/perllib/FileUtils
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/perllib/FileUtils/HDFSShell.pm

    r27479 r27525  
    240240}
    241241# isFilenameAbsolute()
     242
     243
     244## @function isHDFS
     245#
     246sub isHDFS
     247{
     248  return 1;
     249}
     250## isHDFS()
    242251
    243252
  • gs2-extensions/parallel-building/trunk/src/perllib/FileUtils/HDThriftFS.pm

    r27514 r27525  
    7272
    7373# Configuration
    74 my $host = "localhost";
     74my $host = "medusa.local";
    7575my $port = 58660;
    7676my $debug = 0;
     
    8080#my $buffer_length =   16 * 1024; # 16K blocks
    8181#my $buffer_length =   32 * 1024; # 32k blocks
    82 my $buffer_length =   64 * 1024; # 64k blocks
     82#my $buffer_length =   64 * 1024; # 64k blocks
    8383#my $buffer_length =  128 * 1024; # 128k blocks
    8484#my $buffer_length =  256 * 1024; # 256k blocks
    85 #my $buffer_length =  512 * 1024; # 512k blocks
     85my $buffer_length =  512 * 1024; # 512k blocks
    8686#my $buffer_length = 1024 * 1024; # 1M blocks
    8787#my $buffer_length = 2048 * 1024; # 2M blocks
     88## These cause "OUT OF MEMORY" errors on Medusa
    8889#my $buffer_length = 4096 * 1024; # 4M blocks
    8990#my $buffer_length = 8192 * 1024; # 8M blocks
     
    374375}
    375376# isFilenameAbsolute()
     377
     378
     379## @function isHDFS
     380#
     381sub isHDFS
     382{
     383  return 1;
     384}
     385## isHDFS()
    376386
    377387
  • gs2-extensions/parallel-building/trunk/src/perllib/FileUtils/LocalFS.pm

    r27481 r27525  
    141141}
    142142# isFilenameAbsolute()
     143
     144
     145## @function isHDFS
     146#
     147sub isHDFS
     148{
     149  return 0;
     150}
     151## isHDFS()
    143152
    144153
Note: See TracChangeset for help on using the changeset viewer.