original_docstring: 
          hdfs system context - Attempt to establish the connection to hdfs
          and yields HadoopFileSystem
  
      :param host: hostname or when relaying on the core-site.xml config use 'default'
      :param port: port or when relaying on the core-site.xml config use 0
      
docstring: hdfs system context - Attempt to establish the connection to hdfs
  and yields HadoopFileSystem
docstring_tokens: hdfs system context - Attempt to establish the connection to hdfs and yields HadoopFileSystem
code: def hdfs_system(host, port):
      """
          hdfs system context - Attempt to establish the connection to hdfs
          and yields HadoopFileSystem
  
      :param host: hostname or when relaying on the core-site.xml config use 'default'
      :param port: port or when relaying on the core-site.xml config use 0
      """
      import pyarrow as pa
  
      driver = os.getenv('MLFLOW_HDFS_DRIVER') or 'libhdfs'
      kerb_ticket = os.getenv('MLFLOW_KERBEROS_TICKET_CACHE')
      kerberos_user = os.getenv('MLFLOW_KERBEROS_USER')
      extra_conf = _parse_extra_conf(os.getenv('MLFLOW_PYARROW_EXTRA_CONF'))
  
      connected = pa.hdfs.connect(host=host or 'default',
                                  port=port or 0,
                                  user=kerberos_user,
                                  driver=driver,
                                  kerb_ticket=kerb_ticket,
                                  extra_conf=extra_conf)
      yield connected
      connected.close()
code_tokens: def hdfs_system ( host , port ) : import pyarrow as pa driver = os . getenv ( 'MLFLOW_HDFS_DRIVER' ) or 'libhdfs' kerb_ticket = os . getenv ( 'MLFLOW_KERBEROS_TICKET_CACHE' ) kerberos_user = os . getenv ( 'MLFLOW_KERBEROS_USER' ) extra_conf = _parse_extra_conf ( os . getenv ( 'MLFLOW_PYARROW_EXTRA_CONF' ) ) connected = pa . hdfs . connect ( host = host or 'default' , port = port or 0 , user = kerberos_user , driver = driver , kerb_ticket = kerb_ticket , extra_conf = extra_conf ) yield connected connected . close ( )
short_docstring: hdfs system context - Attempt to establish the connection to hdfs
  and yields HadoopFileSystem
short_docstring_tokens: hdfs system context - Attempt to establish the connection to hdfs and yields HadoopFileSystem
comment: """
          hdfs system context - Attempt to establish the connection to hdfs
          and yields HadoopFileSystem
  
      :param host: hostname or when relaying on the core-site.xml config use 'default'
      :param port: port or when relaying on the core-site.xml config use 0
      """