We use EC2 machines to read parquet datasets from S3. One user has a problem with getting this to work. The initial issue was trying to read parquet files from S3 failed, with what looked like an AWS credentials error:
Error: IOError: When getting information for key 'X' in bucket 'Y': AWS Error [code 15]: No response body.
The AWS CLI doesn't have a permissions problem, nor does the pyarrow package in Python, and neither do other packages in R (eg paws). I assumed it was to do with not having a full install of the Arrow package with S3 support. Trying a few different versions of reinstalling from source all failed at a stage building Thrift, which in turn seemed to be related to not finding Boost libraries – see the attached error log.
Usual approach we use, which worked on other machines
Sys.setenv("LIBARROW_MINIMAL" = FALSE)
install.packages("arrow")
Trying to use an Arrow binary, I think probably not the right way, and it's just falling back to building from source.
Sys.setenv("LIBARROW_BINARY" = TRUE) # I'm not sure this is actually the correct use
Sys.setenv("LIBARROW_MINIMAL" = FALSE)
install.packages("arrow")
Following some advice in another issue I now can't find, I tried specifying the compilers
Sys.setenv(CC="/usr/bin/gcc")
Sys.setenv(CXX="/usr/bin/g++")
Sys.setenv(LIBARROW_MINIMAL="FALSE")
Sys.setenv(LIBARROW_BINARY="FALSE")
Sys.setenv(ARROW_R_DEV="TRUE")
install.packages("arrow")
We've also tried getting the missing dependencies from yum:
yum install -y libcurl-devel
yum install -y openssl-devel
yum install -y thrift
yum install -y boost boost-thread boost-devel
But are still failing at the same point.
If we install from the RSPM repo for Centos7 (We're running Amazon Linux 2), the package installs seemingly happily but we still have the AWS Error message when trying to read from an S3 bucket.
Environment: Amazon Linux 2, R 4.1, Arrow 9.0.0
Reporter: Adam Giles
Original Issue Attachments:
Note: This issue was originally created as ARROW-17652. Please see the migration documentation for further details.
We use EC2 machines to read parquet datasets from S3. One user has a problem with getting this to work. The initial issue was trying to read parquet files from S3 failed, with what looked like an AWS credentials error:
The AWS CLI doesn't have a permissions problem, nor does the
pyarrowpackage in Python, and neither do other packages in R (egpaws). I assumed it was to do with not having a full install of the Arrow package with S3 support. Trying a few different versions of reinstalling from source all failed at a stage building Thrift, which in turn seemed to be related to not finding Boost libraries – see the attached error log.Usual approach we use, which worked on other machines
Trying to use an Arrow binary, I think probably not the right way, and it's just falling back to building from source.
Following some advice in another issue I now can't find, I tried specifying the compilers
We've also tried getting the missing dependencies from
yum:But are still failing at the same point.
If we install from the RSPM repo for Centos7 (We're running Amazon Linux 2), the package installs seemingly happily but we still have the AWS Error message when trying to read from an S3 bucket.
Environment: Amazon Linux 2, R 4.1, Arrow 9.0.0
Reporter: Adam Giles
Original Issue Attachments:
Note: This issue was originally created as ARROW-17652. Please see the migration documentation for further details.