egibbm opened a new issue #9347:
URL: https://github.com/apache/airflow/issues/9347


   <!--
   
   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.
   This questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**: 1.10.10
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: Google Cloud
   - **OS** (e.g. from /etc/os-release): Ubuntu 18.04.4 LTS
   - **Kernel** (e.g. `uname -a`): Linux int-vidio-stats-airflow-bionic 
5.0.0-1034-gcp #35-Ubuntu SMP Tue Mar 17 03:56:45 UTC 2020 x86_64 x86_64 x86_64 
GNU/Linux
   - **Install tools**: pip
   - **Others**:
   
   **What happened**:
   
   Recently, we upgraded airflow version from v1.10.5 to v1.10.10 due to 
airflow instance that upgraded to ubuntu bionic. Existing dag configuration 
having tags as list causes  an issue at some jobs that use Qubole.
   Error log:
   
   ```
   Traceback (most recent call last):
     File 
"/home/jenkins/virtualenv/airflow/lib/python3.6/site-packages/airflow/models/taskinstance.py",
 line 983, in _run_raw_task
       result = task_copy.execute(context=context)
     File 
"/home/jenkins/virtualenv/airflow/lib/python3.6/site-packages/airflow/contrib/operators/qubole_operator.py",
 line 207, in execute
       return self.get_hook().execute(context)
     File 
"/home/jenkins/virtualenv/airflow/lib/python3.6/site-packages/airflow/contrib/hooks/qubole_hook.py",
 line 131, in execute
       args = self.cls.parse(self.create_cmd_args(context))
     File 
"/home/jenkins/virtualenv/airflow/lib/python3.6/site-packages/airflow/contrib/hooks/qubole_hook.py",
 line 248, in create_cmd_args
       self._add_tags(tags, value)
     File 
"/home/jenkins/virtualenv/airflow/lib/python3.6/site-packages/airflow/contrib/hooks/qubole_hook.py",
 line 267, in _add_tags
       tags.extend(value)
   AttributeError: 'set' object has no attribute 'extend'
   ```
   
   **What you expected to happen**:
   
   the tags should be included as a comma separated arguments to the build 
command.
   
   **How to reproduce it**:
   using sample dag having list tags
   ```
       t2 = QuboleOperator(
           task_id='hive_gcs_location',
           command_type="hivecmd",
           
script_location="s3n://public-qubole/qbol-library/scripts/show_table.hql",
           notify=True,
           tags=['tag1', 'tag2'],
           trigger_rule="all_done"
       )
   ```
   and do an airflow run.


----------------------------------------------------------------
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:
[email protected]


Reply via email to