title: How to get schema of a hive table created in TextInput/OutputFormat using Java
body: <p>If it is an avro, orc or parquet table, I can use respective libraries to fetch the schema.
  But if the input/output format is TXT, and data is stored in csv files, how can I get the schema <strong>programatically</strong>?</p>
  
  <p>Thanks,</p>