Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load S3 #453

Open
AllamSudhakara opened this issue Sep 27, 2021 · 2 comments
Open

Unable to load S3 #453

AllamSudhakara opened this issue Sep 27, 2021 · 2 comments

Comments

@AllamSudhakara
Copy link

I have a very simple configuration file and Job file where in I select 20 rows from HADOOP System using HIVE Catalog and push it to S3 bucket. Job is populating the data frame and does not create file in S3. Could you please verify the following and provide me insight on what I am doing wrong? Thanks in advance for the help.

Command
spark-submit --conf spark.sql.catalogImplementation=hive --conf spark.hadoop.dfs.nameservices=mycluster --conf spark.hadoop.fs.s3a.fast.upload=True --conf spark.hadoop.fs.s3a.path.style.access=True --conf spark.hadoop.fs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem --conf spark.hadoop.fs.s3a.access.key= --conf spark.hadoop.fs.s3a.secret.key=<DEV-SECRET_KEY> --class com.yotpo.metorikku.Metorikku /home/myEdgenodePath/metorikku_2.11.jar -c /myHadoopFS/job-StraightLoad.yml

Job

metrics:

  • /myHadoopFA/metric-StraightLoad.yml

variables:
StartDate: 2021-09-01
EndDate: 2021-09-07
TrimmedDateFormat: yyyy-mm-dd

output:
file:
dir: s3a://dev-files-exchange/output

Metric

steps:

  • dataFrameName: MYMonthly
    sql:
    select * from mySchema.my_aggregate where exp_dt = ${EndDate} LIMIT 20
    ignoreOnFailures: false

output:

  • dataFrameName: MYMonthly
    outputType: Parquet
    outputOptions:
    saveMode: Overwrite
    path: MYMonthly.parquet
@lucabem
Copy link

lucabem commented Aug 10, 2022

Hi @AllamSudhakara:

I am currently using Metorikku and I am able to write to S3 parquet files. I am using this output's configuration:

  - dataFrameName: df_name
    outputType: File
    format: parquet
    outputOptions:
      saveMode: Overwrite
      path: s3a://<s3_bucket_name>/path/to/file

Looks like you are note building path correctly

@AllamSudhakara
Copy link
Author

AllamSudhakara commented Aug 10, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants