title: Using HBase put command in airflow bashOperator
body: <p>I'm trying to insert some data into a Hbase table with a Airflow <code>BashOperator</code> task. I try to first call the hbase shell and then insert some data into my table:</p>
  <pre><code>logg_data_to_hbase = BashOperator(
      task_id='data_to_hbase',
      dag=test_dag,
      bash_command=&quot;hbase shell &amp;&amp; put 'tablename', 'rowname','columnvalue', 1000&quot;)
  </code></pre>
  <p>I get an error saying ERROR - Bash command failed.</p>
  <blockquote>
  <p>[2022-01-06 11:01:17,077] {bash_operator.py:100} INFO - Temporary
  script location: /tmp/airflowtmpcKRT8C/data_to_hbaseY7y25j</p>
  <p>[2022-01-06 11:01:17,077] {bash_operator.py:110} INFO - Running
  command: hbase shell &amp;&amp; put 'tablename', 'rowname','columnvalue', 1000</p>
  <p>[2022-01-06 11:01:17,091] {bash_operator.py:119} INFO - Output:</p>
  <p>[2022-01-06 11:01:28,659] {bash_operator.py:123} INFO -
  /tmp/airflowtmpcKRT8C/data_to_hbaseY7y25j: line 1: put: command not
  found</p>
  <p>[2022-01-06 11:01:28,660] {bash_operator.py:127} INFO - Command exited
  with return code 127</p>
  <p>[2022-01-06 11:01:28,672] {models.py:1788} ERROR - Bash command failed</p>
  <p>Traceback (most recent call last):   File
  &quot;/opt/python-2.7.16-AF-1.10.2-XXX/lib/python2.7/site-packages/airflow/models.py&quot;,
  line 1652, in _run_raw_task
  result = task_copy.execute(context=context)   File &quot;/opt/python-2.7.16-AF-1.10.2-XXX/lib/python2.7/site-packages/airflow/operators/bash_operator.py&quot;,
  line 131, in execute
  raise AirflowException(&quot;Bash command failed&quot;) AirflowException: Bash command failed</p>
  </blockquote>
  <p>What do I need to change in order to execute the put-command?</p>