https://github.com/apache/airflow/blob/6c458f29c0eeadb1282e524e76fdd379d6436824/airflow/providers/apache/hive/hooks/hive.py#L464

It should be:
```
if hasattr(self, 'sub_process')
```
airflow/providers/apache/hive/hooks/hive.py
"""This function creates the command list from available information"""
        conn = self.conn
        hive_bin = 'hive'
        cmd_extra = []
        if self.use_beeline:
            hive_bin = 'beeline'
            jdbc_url = f"jdbc:hive2://{conn.host}:{conn.port}/{conn.schema}"
            if conf.get('core', 'security') == 'kerberos':
                template = conn.extra_dejson.get('principal', "hive/_HOST@EXAMPLE.COM")
                if "_HOST" in template:
                    template = utils.replace_hostname_pattern(utils.get_components(template))
                proxy_user = self._get_proxy_user()
                jdbc_url += f";principal={template};{proxy_user}"
            elif self.auth:
                jdbc_url += ";auth=" + self.auth
            jdbc_url = f'"{jdbc_url}"'
            cmd_extra += ['-u', jdbc_url]
            if conn.login:
                cmd_extra += ['-n', conn.login]
            if conn.password:
                cmd_extra += ['-p', conn.password]
        hive_params_list = self.hive_cli_params.split()
        return [hive_bin] + cmd_extra + hive_params_list
    @staticmethod
    def _prepare_hiveconf(d: Dict[Any, Any]) -> List[Any]: