marun224 commented on issue #34071: URL: https://github.com/apache/arrow/issues/34071#issuecomment-1423080933
I am using the standard code in the Arrow java cookbook. Updated ~/.aws/credentials file is available in user directory. Even tried setting the environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN as per the link https://cran.r-project.org/web/packages/arrow/vignettes/fs.html. But still getting same error. Any help on this highly appreciated. String uri = "s3://bucket_name/sub-directory"; ScanOptions options = new ScanOptions( 32768); try ( BufferAllocator allocator = new RootAllocator(); DatasetFactory datasetFactory = new FileSystemDatasetFactory(allocator, NativeMemoryPool.getDefault(), FileFormat.PARQUET, uri); Dataset dataset = datasetFactory.finish(); Scanner scanner = dataset.newScan(options) ) { System.out.println(StreamSupport.stream(scanner.scan().spliterator(), false).count()); } catch (Exception e) { e.printStackTrace(); } -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
