How to Solve NameError: name 'HiveOperator' is not defined -- airflow

Solution: Import the 'HiveOperator' module

# Add the following line to the top of your code
from airflow.providers.apache.hive.operators.hive import HiveOperator

 

For more information:
airflow HiveOperator