aditya-raval-genea opened a new issue, #108:
URL: https://github.com/apache/hudi-rs/issues/108

   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Description of the bug
   
   I am trying to connect to S3 bucket, but I am not able to connect with it.
   Refer this as .env file
   `
   AWS_ACCESS_KEY_ID = "XXX"
   AWS_SECRET_ACCESS_KEY = "XXX"
   AWS_DEFAULT_REGION = "us-east-1"
   `
   
   Refer this as python snippet
   ```
   debug = True
   from dotenv import load_dotenv
   load_dotenv()  # take environment variables from .env.
   import os
   
   from hudi import HudiTable
   import pyarrow as pa
   import pyarrow.compute as pc
   import duckdb
   
   print(os.environ)  # print env
   
   hudi_table_cloud = HudiTable("s3://sample-bucket/data/")
   # hudi_table_cloud = HudiTable("file:///Users/user1/data")
   
   records_cloud = hudi_table_cloud.read_snapshot()
   arrow_table = pa.Table.from_batches(records_cloud)
   
   con = duckdb.connect()
   
   duck_results = con.execute(
       """
       SELECT *
       from
       arrow_table
       """
   ).arrow()
   
   print(duck_results)
   
   ```
   
   ### Steps To Reproduce
   
   I am simply running the python file, I am able to see env file is printing 
appropriate data
   
   ### Expected behavior
   
   It should be able to print results on console.
   
   P.S. It is working fine with local hudi data inside file system 
   
   ### Screenshots / Logs
   
   _No response_
   
   ### Software information
   
   - Operating system: MacOS
   - Rust version: rustc 1.71.1
   - Project version: 0.1.0
   
   
   ### Additional context
   
   _No response_


-- 
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]

Reply via email to