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 2022/01/06 16:25:15 UTC

[GitHub] [airflow] aubdiy edited a comment on issue #20709: With hive-provider installed, but can not be recognized from Airflow Connection Web UI?

aubdiy edited a comment on issue #20709:
URL: https://github.com/apache/airflow/issues/20709#issuecomment-1006722148


   @potiuk   @ultimateChick
   
   Finally solved.
   
   First of all, the conclusion is that   No module named '_bz2',  
   
   ```
   yum install  bzip2-devel
   ```
   then rebuild python3.8,  and  install airflow ,   
   
   
   The process of investigation;
   1. modiry '/usr/local/python3.8/lib/python3.8/site-packages/airflow/providers/apache/hive/get_provider_info.py' append  `traceback.extract_stack()` 
   2. restart webserver , then look the  stack log
   
   3. `/usr/local/python3.8/lib/python3.8/site-packages/airflow/www/views.py` line 3341 `choices=sorted(_get_connection_types(), key=itemgetter(1)),` 
   4.  fond `provider_info(line 3334)` is none
   5.  `/usr/local/python3.8/lib/python3.8/site-packages/airflow/providers_manager.py` line 142 ` import_string(class_name)`  exception, **but the log level is debug**  , 
   i  start webserver use 'airflow webserver -d',  log  nothing.
   6.  append code `print(e)`  , restart webserver,    console  output  `No module named '_bz2',  `
   
   
   
   
   suggest:   modify `providers_manager.py(line  146)`  log level to 'error',  
   
   another question:   why  i  use   'airflow webserver -d'  start webserver ,    the debug level log not  output to  console?
   
   


-- 
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: commits-unsubscribe@airflow.apache.org

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