有以下錯誤
. lang。RuntimeException: Installation failed with message:
錯誤安裝R包:無法與錯誤:安裝包的安裝包“rgdal”非零退出狀態完全錯誤日誌可以在/磚/司機/ library-install-logs / R -包裝-安裝- rgdal - 2021 - 05 - 10 - t09:12:47z -_1XBW4。日誌錯誤安裝R包:無法與錯誤:安裝包的安裝包“rgdal”非零退出狀態完全錯誤日誌可以在/磚/司機/ library-install-logs / R -包裝-安裝- rgdal - 2021 - 05 - 10 - t09:12:47z it1lll.log;
我們可以用下麵的init腳本在集群中安裝包:
% scala dbutils.fs.put (“dbfs: /磚/ init_scripts / rlib。sh”、“”“# !/bin/bash sudo apt-get安裝- y libudunits2-dev sudo add-apt-repository ppa: ubuntugis / ubuntugis-unstable sudo apt-get安裝- y libudunits2-dev libgdal-dev libgeos-dev libproj-dev sudo apt-get安裝- y libfontconfig1-dev sudo apt-get安裝- y libcairo2-dev sudo apt-get安裝- y libprotobuf-dev sudo apt-get安裝- y protobuf-compiler sudo add-apt-repository - y ppa: opencpu /金橋sudo apt-get安裝- y libjq-dev sudo apt-get安裝- y libv8-dev R - e的安裝。包(c (“rgdal”、“RJDBC”、“科幻小說”,“rgeos”),依賴= T,回購= " https://cran.r-project.org ")”“”,真的)