You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/10/14 09:11:36 UTC

[GitHub] [airflow] madhukar05 opened a new issue #11524: BigQueryToGCSOperator issue

madhukar05 opened a new issue #11524:
URL: https://github.com/apache/airflow/issues/11524


   <!--
   
   
   
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**:
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**:
   Using Google composer and trying to save data to GCS location from Bigquery for that using BigQueryToGCSOperator. task is completed successfully but non of the file was crated in GCS.
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] madhukar05 commented on issue #11524: BigQueryToGCSOperator issue

Posted by GitBox <gi...@apache.org>.
madhukar05 commented on issue #11524:
URL: https://github.com/apache/airflow/issues/11524#issuecomment-709993981


   **Composer Version :** composer-1.12.2-airflow-1.10.9
   
   Here is the complete scripts which i'm using 
   
   import os
   
   from airflow import models
   from airflow.utils.dates import days_ago
   from airflow.operators import bash_operator
   from airflow.providers.google.cloud.transfers.bigquery_to_gcs import BigQueryToGCSOperator
   from airflow.providers.google.cloud.operators.bigquery import BigQueryExecuteQueryOperator
   
   dag = models.DAG(
       dag_id='wrapper_script_for_dag',
       start_date=days_ago(2),
       schedule_interval=None,
   
   )
   
   bq_to_gcs_dag = BigQueryToGCSOperator(
   task_id='bq_to_gcs_dag', gcp_conn_id='my_gcp_connection' , source_project_dataset_table=XXXXXX ,
   destination_cloud_storage_uris=f"gs://XXX",
   export_format='CSV',
   print_header=False ,
   dag=dag
   )


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] madhukar05 commented on issue #11524: BigQueryToGCSOperator issue

Posted by GitBox <gi...@apache.org>.
madhukar05 commented on issue #11524:
URL: https://github.com/apache/airflow/issues/11524#issuecomment-708528760


   here is the code i'm using... 
   
   below mentioned task completed successfully but didn't find the output file in GCS 
   
   bq_to_gcs_dag = BigQueryToGCSOperator(
           task_id='bq_to_gcs_dag', gcp_conn_id='my_gcp_connection' , source_project_dataset_table=XXXXXX ,
           destination_cloud_storage_uris=f"gs://XXX",
           export_format='CSV',
           print_header=False ,
           dag=dag
           )


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] turbaszek commented on issue #11524: BigQueryToGCSOperator issue

Posted by GitBox <gi...@apache.org>.
turbaszek commented on issue #11524:
URL: https://github.com/apache/airflow/issues/11524#issuecomment-710294660


   See #9897. Solved in #9899, so it will be fixed in new providers release 🚀 


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] TobKed commented on issue #11524: BigQueryToGCSOperator issue

Posted by GitBox <gi...@apache.org>.
TobKed commented on issue #11524:
URL: https://github.com/apache/airflow/issues/11524#issuecomment-708314658


   @madhukar05 which version of Composer to you use?
   Do you use google backport packages?
   Also some example of usage `BigQueryToGCSOperator` (anonymised) would be very helpful to reproduce it.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #11524: BigQueryToGCSOperator issue

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #11524:
URL: https://github.com/apache/airflow/issues/11524#issuecomment-708270529


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] turbaszek closed issue #11524: BigQueryToGCSOperator issue

Posted by GitBox <gi...@apache.org>.
turbaszek closed issue #11524:
URL: https://github.com/apache/airflow/issues/11524


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org