, . , _ TEXTFILE, (\r, \n \r\n), - SerDe.
RegexSerDe, , NULL. STORED AS TEXTFILE. NULL: .
, , , .
Hive - _:
STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat'
TextInputFormat textinputformat.record.delimiter. TextInputFormat, Hadoop Hive, , .
, - EOR , EOR, . , , RegexSerDe , .
, ( ) , :
SET textinputformat.record.delimiter=EOR;
CREATE EXTERNAL TABLE ...
...
ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe'
WITH SERDEPROPERTIES (
"input.regex" = ...
"output.regex" = ...
)
STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION ...;
, textinputformat.record.delimiter EOF, ββ , , .
( s > 1 , ), . - , .