class_docstr: Simple wrapper around the hive CLI.
  
  It also supports the ``beeline``
  a lighter CLI that runs JDBC and is replacing the heavier
  traditional CLI. To enable ``beeline``, set the use_beeline param in the
  extra field of your connection as in ``{ "use_beeline": true }``
  
  Note that you can also set default hive CLI parameters by passing ``hive_cli_params``
  space separated list of parameters to add to the hive command.
  
  The extra connection parameter ``auth`` gets passed as in the ``jdbc``
  connection string as is.
  
  :param hive_cli_conn_id: Reference to the
      :ref:`Hive CLI connection id <howto/connection:hive_cli>`.
  :param mapred_queue: queue used by the Hadoop Scheduler (Capacity or Fair)
  :param mapred_queue_priority: priority within the job queue.
      Possible settings include: VERY_HIGH, HIGH, NORMAL, LOW, VERY_LOW
  :param mapred_job_name: This name will appear in the jobtracker.
      This can make monitoring easier.
  :param hive_cli_params: Space separated list of hive command parameters to add to the
      hive command.
  :param proxy_user: Run HQL code as this user.
class_docstr_tok: ["Simple","wrapper","around","the","hive","CLI",".","It","also","supports","the","``","beeline","``","a","lighter","CLI","that","runs","JDBC","and","is","replacing","the","heavier","traditional","CLI",".","To","enable","``","beeline","``",",","set","the","use_beeline","param","in","the","extra","field","of","your","connection","as","in","``","{","``","use_beeline","''",":","true","}","``","Note","that","you","can","also","set","default","hive","CLI","parameters","by","passing","``","hive_cli_params","``","space","separated","list","of","parameters","to","add","to","the","hive","command",".","The","extra","connection","parameter","``","auth","``","gets","passed","as","in","the","``","jdbc","``","connection","string","as","is",".",":","param","hive_cli_conn_id",":","Reference","to","the",":","ref",":","`","Hive","CLI","connection","id","<","howto\/connection",":","hive_cli",">","`",".",":","param","mapred_queue",":","queue","used","by","the","Hadoop","Scheduler","(","Capacity","or","Fair",")",":","param","mapred_queue_priority",":","priority","within","the","job","queue",".","Possible","settings","include",":","VERY_HIGH",",","HIGH",",","NORMAL",",","LOW",",","VERY_LOW",":","param","mapred_job_name",":","This","name","will","appear","in","the","jobtracker",".","This","can","make","monitoring","easier",".",":","param","hive_cli_params",":","Space","separated","list","of","hive","command","parameters","to","add","to","the","hive","command",".",":","param","proxy_user",":","Run","HQL","code","as","this","user","."]
code: def _validate_beeline_parameters(self, conn):
      if ":" in conn.host or "/" in conn.host or ";" in conn.host:
          raise Exception(
              f"The host used in beeline command ({conn.host}) should not contain ':/;' characters)"
          )
      try:
          int_port = int(conn.port)
          if not 0 < int_port <= 65535:
              raise Exception(
                  f"The port used in beeline command ({conn.port}) should be in range 0-65535)"
              )
      except (ValueError, TypeError) as e:
          raise Exception(
              f"The port used in beeline command ({conn.port}) should be a valid integer: {e})"
          )
      if ";" in conn.schema:
          raise Exception(
              f"The schema used in beeline command ({conn.schema}) should not contain ';' character)"
          )
  
imports: from __future__ import annotations
  import contextlib
  import os
  import re
  import socket
  import subprocess
  import time
  import warnings
  from tempfile import NamedTemporaryFile, TemporaryDirectory
  from typing import TYPE_CHECKING, Any, Iterable, Mapping
  from airflow.exceptions import AirflowProviderDeprecationWarning
  import csv
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException
  from airflow.hooks.base import BaseHook
  from airflow.providers.common.sql.hooks.sql import DbApiHook
  from airflow.security import utils
  from airflow.utils.helpers import as_flattened_list
  from airflow.utils.operator_helpers import AIRFLOW_VAR_NAME_FORMAT_MAPPING
label_desc: Use image node_id 4 for calling the HiveCliHook obj's underlying member method code with example usage: obj._validate_beeline_parameters(conn) without return types