Hi, Hive experts,

Would you see what I am doing wrong? For a simple test of breaking a text
into words and putting these words into a table, I am doing this

CREATE EXTERNAL TABLE books1
(
  words string
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe'
WITH SERDEPROPERTIES ("input.regex" = "\\W")
STORED AS TextFile;

LOAD DATA INPATH '/test-data/ch1/moby-dick.txt'  OVERWRITE INTO TABLE
books1;

This SerDe works in Java code, but in Hive I am getting all nulls in the
books1 table.

Thank you,
Mark

Reply via email to