Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FYI: Multicore BatchJobs does not work on Solaris Unix (ps -o ucomm not supported) #118

Open
HenrikBengtsson opened this issue Jun 26, 2016 · 0 comments

Comments

@HenrikBengtsson
Copy link
Contributor

Just an FYI, multicore BatchJobs does not work on Solaris because the linux-helper shell script uses command-line option -o ucomm when calling ps and this option is not supported on Solaris.

Below is the error reported by CRAN r-patched-solaris-x86 when future.BatchJobs (mine) runs tests relying on multicore BatchJobs tasks:

    Running the tests intests/BatchJobsFutureError.Rfailed.
    Last 13 lines of output:
     ..$ listJobs :function (conf, reg) 
     ..$ getArrayEnvirName:function () 
     ..- attr(*, "class")= chr "ClusterFunctions"
     Error in dbDoQuery(reg, query) : 
     Error in dbDoQuery. Error in sqliteSendQuery(con, statement, bind.data) : 
     error in statement: near "format": syntax error
     (SELECT job_id FROM BatchJobs_1974974119_job_status WHERE (batch_job_id IN ('ps: illegal option -- w','ps: illegal option -- w','ps: unknown output format: -o ucomm','ps: unknown output format: -o command','usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]','[ -u userlist ] [ -U userlist ] [ -G grouplist ]','[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]',''format' is one or more of:','user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid','pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid','f s c lwp nlwp psr tty addr wchan fname comm args projid project pset')) AND job_id IN (1))
     Calls: future ... dbFindOnSystem -> dbSelectWithIds -> dbDoQuery -> stopf
     Execution halted
     Error in dbDoQuery(reg, query) : 
     Error in dbDoQuery. Error in sqliteSendQuery(con, statement, bind.data) : 
     error in statement: near "format": syntax error
     (SELECT COUNT(job_id) AS n, COUNT(submitted) AS submitted, COUNT(started) AS started, COUNT(done) AS done, COUNT(error) AS error, SUM(started IS NOT NULL AND done IS NULL AND error IS NULL AND batch_job_id IN ('ps: illegal option -- w','ps: illegal option -- w','ps: unknown output format: -o ucomm','ps: unknown output format: -o command','usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]','[ -u userlist ] [ -U userlist ] [ -G grouplist ]','[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]',''format' is one or more of:','user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid','pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid','f s c lwp nlwp psr tty addr wchan fname comm args projid project pset')) AS running, SUM(started IS NOT NULL AND done IS NULL AND error IS NULL AND batch_job_id NOT IN ('ps: illegal option -- w','ps: illegal option -- w','ps: unknown output format: -o ucomm','ps: unknown output format: -o command','usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]','[ -u userlist ] [ -U userlist ] [ -G grouplist ]','[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]',''format' is one or more of:','user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid','pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid','f s c lwp nlwp psr tty addr wchan fname comm args projid project pset')) AS expired, MIN(done - started) AS t_min, AVG(done - started) AS t_avg, MAX(done - started) AS t_max FROM BatchJobs_1974974119_job_status WHERE job_id IN (1)) 
Flavor: r-patched-solaris-x86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant