aubdiy commented 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  writout  `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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to