The file format is given at the creation of a table with the statement STORED AS.
The default is given by the hive.default.fileformat conf.