You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Will Jones (Jira)" <ji...@apache.org> on 2021/12/13 16:03:00 UTC
[jira] [Commented] (ARROW-15072) [R] Error: This build of the arrow package does not support Datasets
[ https://issues.apache.org/jira/browse/ARROW-15072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17458503#comment-17458503 ]
Will Jones commented on ARROW-15072:
------------------------------------
When you install the arrow R package on linux, it defaults to a minimal installation. To install optional components you'll need to set some environment variables indicating which to build. For a simple fix, add {{ENV LIBARROW_MINIMAL false}} to your dockerfile. Other environment variables are covered [at the bottom of Installing the Arrow package on Linux|https://arrow.apache.org/docs/r/articles/install.html#summary-of-build-environment-variables].
You shouldn't strictly need those lines using apt to install arrow libraries; the R package will build the Arrow libraries from source. If you did want to use those binaries, the install script for the R package might automatically discover them, but I haven't tested that. (When I tried running your dockerfile it failed on one of those {{apt install}} commands.)
> [R] Error: This build of the arrow package does not support Datasets
> --------------------------------------------------------------------
>
> Key: ARROW-15072
> URL: https://issues.apache.org/jira/browse/ARROW-15072
> Project: Apache Arrow
> Issue Type: Bug
> Components: Parquet, R
> Affects Versions: 6.0.1
> Environment: x86_64-pc-linux-gnu (64-bit) via rocker/docker rocker/r-base:4.1.2
> Reporter: hu geme
> Priority: Minor
> Fix For: 6.0.1
>
>
> Hello,
> I would like to report a possible issue (or I did not grasp the documentation and I apologize in advance)
> Im trying to use R with arrow on docker:
>
> {code:java}
> FROM rocker/r-base:4.1.2
> RUN apt update && \
> apt install -y -V ca-certificates lsb-release wget && \ wget "https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb" && \ apt-get -y --no-install-recommends install \ ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
> RUN apt update && \
> apt install -y -V -f \ libarrow-dev \ libarrow-dataset-dev \ libarrow-glib-dev \ libarrow-flight-dev \ libparquet-dev \ libparquet-glib-dev
> RUN install2.r --error \
> arrow {code}
> Thats the output of sessionInfo from the container running R
>
> {code:java}
> sessionInfo()
> R version 4.1.2 (2021-11-01)
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Debian GNU/Linux 11 (bullseye)Matrix products: default
> BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
> LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.18.solocale:
> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
> [7] LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8
> [9] LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8attached base packages:
> [1] stats graphics grDevices utils datasets methods base other attached packages:
> [1] arrow_6.0.1 DBI_1.1.1 loaded via a namespace (and not attached):
> [1] tidyselect_1.1.1 bit_4.0.4 compiler_4.1.2 magrittr_2.0.1
> [5] assertthat_0.2.1 R6_2.5.1 tools_4.1.2 glue_1.5.1
> [9] bit64_4.0.5 vctrs_0.3.8 RJDBC_0.2-8 rlang_0.4.12
> [13] rJava_1.0-5 AWR.Athena_2.0.7-0 purrr_0.3.4 {code}
> And as far as I understand, all requierements are fulfilled to use datasets
> R version 4.1.2
> Platform: x86_64-pc-linux-gnu (64-bit)
> arrow_6.0.1
>
> {code:java}
> > .Machine$sizeof.pointer < 8
> [1] FALSE
> > getRversion() < "4.0.0"
> [1] FALSE
> > tolower(Sys.info()[["sysname"]]) == "windows"
> [1] FALSE
> > {code}
> Nevertheless I get
> Error: This build of the arrow package does not support Datasets
> in return when
> {code:java}
> arrow::open_dataset(sources = path) {code}
> Appreciate any help!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)