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

R: install a working R 4.4.2 using JDK 21 #594

Open
balston opened this issue Nov 27, 2024 · 21 comments
Open

R: install a working R 4.4.2 using JDK 21 #594

balston opened this issue Nov 27, 2024 · 21 comments
Assignees

Comments

@balston
Copy link
Contributor

balston commented Nov 27, 2024

R 4.4.2 with Java JDK 21 instead of JDK 8. This should be more compatible with running the Nextflow pipeline and R together eg see closed ticket 1393718

Needed first on Myriad

@balston balston self-assigned this Nov 27, 2024
@balston balston added the Myriad label Nov 27, 2024
@balston
Copy link
Contributor Author

balston commented Nov 27, 2024

A build script for R 4.4.2 and recommended packages has been done which uses the java/21.0.4 module:

https://github.com/UCL-RITS/rcps-buildscripts/blob/f5ffc0b053aaa744110947da3c9bc8facdedfe7a/R-4.4.2_install

and run on Myriad.

@balston
Copy link
Contributor Author

balston commented Nov 27, 2024

The additional packages build script R-4.4.2_packages_install is prepared but I've been going round in circles trying to get a working set of the external geographic tools to work together PROJ.4, GDAL, GMT and GEOS. I think I may finally have got them working with the following:

@balston
Copy link
Contributor Author

balston commented Nov 27, 2024

Now trying to run the R-4.4.2_packages_install from a job as it takes some time to complete. Job script is in:

~ccspapp/Software/R/build-R-4.4.2-packages.sh

@balston
Copy link
Contributor Author

balston commented Nov 27, 2024

Job is now running:

job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID
-----------------------------------------------------------------------------------------------------------------
 460617 3.50000 R-4.4.2-pa ccspapp      r     11/27/2024 18:03:08 bran@node-d00a-026                 2

@balston
Copy link
Contributor Author

balston commented Nov 28, 2024

Job finished overnight:

jobhist
        FSTIME        |       FETIME        |   HOSTNAME    |  OWNER  | JOB NUMBER | TASK NUMBER | EXIT STATUS |        JOB NAME
----------------------+---------------------+---------------+---------+------------+-------------+-------------+-------------------------
  2024-11-27 18:05:11 | 2024-11-27 22:34:33 | node-d00a-026 | ccspapp |     460617 |           0 |           0 | R-4.4.2-packages-build

Now checking how much worked.

@balston
Copy link
Contributor Author

balston commented Nov 28, 2024

building package V8:

https://cran.r-project.org/package=V8

fails.

@balston
Copy link
Contributor Author

balston commented Nov 28, 2024

I have a comment:

# Can no longer use external V8 - must set DOWNLOAD_STATIC_LIBV8=1 before 
# installling the V8 package

maybe this is no longer available/working for RedHat 7. Checking

@balston
Copy link
Contributor Author

balston commented Nov 28, 2024

It looks like an older version of the V8 package may work. Trying:

packageurl <- "https://cran.r-project.org/src/contrib/Archive/V8/V8_5.0.1.tar.gz"
install.packages(packageurl, repos=NULL, type="source")

@balston
Copy link
Contributor Author

balston commented Nov 28, 2024

This does seem to work.

@balston
Copy link
Contributor Author

balston commented Nov 29, 2024

ok now I'm going to start again after moving /shared/ucl/apps/R/R-4.4.2-OpenBLAS out of the way so starting a fresh build. First:

./R-4.4.2_install 2>&1 | tee ~/Software/R/R-4.4.2_install .log-2

@balston
Copy link
Contributor Author

balston commented Nov 29, 2024

base R and recommended packages re-built. Just running some of the demos to test.

@balston
Copy link
Contributor Author

balston commented Nov 29, 2024

submitted additional packages build job from ~ccspapp/Software/R:

qsub build-R-4.4.2-packages.sh
job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID
-----------------------------------------------------------------------------------------------------------------
 468436 0.00000 R-4.4.2-pa ccspapp      qw    11/29/2024 11:48:02                                    2

@balston
Copy link
Contributor Author

balston commented Nov 29, 2024

Build job has finished with no obvious errors. Log is in /home/ccspapp/Scratch/R/R-4.4.2-packages-build.o468436

@balston
Copy link
Contributor Author

balston commented Nov 29, 2024

Installing R MPI support packages like doMPI:

./R-4.4.2_MPI_install 2>&1 | tee ~/Software/R/R-4.4.2_MPI_install.log

@balston
Copy link
Contributor Author

balston commented Nov 29, 2024

looks ok. Next step is to install the R 4.4.2 module file and module bundle.

@balston
Copy link
Contributor Author

balston commented Dec 3, 2024

I've run some tests on the Myriad build:

the tests have worked ok so R 4.4.2 is now ready to install on all clusters. Will do Kathleen next.

@balston
Copy link
Contributor Author

balston commented Dec 3, 2024

On Kathleen I'm running the build scripts in this order:

module unload gcc-libs
./R-4.4.2_install 2>&1 | tee ~/Software/R/R-4.4.2_install.log
./PROJ.4-9.2.0_install 2>&1 | tee ~/Software/PROJ.4/PROJ.4-9.2.0_install.log
./gdal-3.3.3_install 2>&1 | tee ~/Software/GDAL/gdal-3.3.3_install.log
./gmt-6.5.0_install 2>&1 | tee ~/Software/GMT/gmt-6.5.0_install.log

GEOS 3.9.1 is already installed on Kathleen.

@balston
Copy link
Contributor Author

balston commented Dec 5, 2024

R 4.4.2 additional packages build job located here on Kathleen:

~ccspapp/Software/r/build-R-4.4.2-packages.sh

submitted earlier.

qstat
job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID
-----------------------------------------------------------------------------------------------------------------
 522923 3.50000 R-4.4.2-pa ccspapp      r     12/05/2024 14:31:11 [email protected]    80

@balston
Copy link
Contributor Author

balston commented Dec 9, 2024

I've checked the log for the additional packages build job and it looks as everything. installed ok.

@balston
Copy link
Contributor Author

balston commented Dec 9, 2024

now running the MPI support packages installer script:

./R-4.4.2_MPI_install 2>&1 | tee ~/Software/R/R-4.4.2_MPI_install.log

@balston
Copy link
Contributor Author

balston commented Dec 10, 2024

I've run a test job on Kathleen using the doMPI package and this has worked correctly. Will now install on all clusters:

  • kathleen;
  • michael;
  • myriad;
  • young

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant