title: Airflow not seeing hdfs file to load data inpath to hive table
body: <p>I am trying to load data in path xxx.csv from hdfs to hive using Airflow.  I created the following DAG which calls a hql script saved in the dags/hql folder.  The dag file works as expected but when it runs the hql script I get an error that it can't find the file '/user/Cars/*.csv'.    The same statement works just fine when I run it directly in hive but for some reason when I run it from airflow it doesn't see it?</p>
  <hr />
  <pre><code>import airflow
  from airflow.models import DAG
  from airflow.decorators import task
  from airflow.operators.python import PythonOperator
  from airflow.operators.bash import BashOperator
  from airflow.utils.dates import days_ago
  from airflow.providers.apache.hive.operators.hive import HiveOperator
  from datetime import datetime
  
  
  dag_hive = DAG(dag_id=&quot;hive_test&quot;,
                  schedule_interval=&quot;@daily&quot;,
                  start_date=airflow.utils.dates.days_ago(1),
          catchup=False)
                  
  
  hive_task = HiveOperator(hql=&quot;hql/tst.hql&quot;,
                     task_id=&quot;hive_script_task1&quot;,
                     hive_cli_conn_id=&quot;hiveserver2_default&quot;,
                     dag=dag_hive)
                     
  
  hive_task
  if __name__ == '__main__':
    dag_hive.cli()            
  </code></pre>
  <hr />
  <p><strong>tst.hql:</strong></p>
  <pre><code>use hivemetastore;
  truncate table stage_cars;
  load data inpath '/user/Cars/*.csv' into table stage_cars;
  </code></pre>