<div class=”bbp-topic-content”>
I’m using sandbox 2.3’s Regex Serde and I can select but cannot insert/select it fails with “Class org.apache.hadoop.hive.contrib.serde2.RegexSerDe not found”
The SerDe is used for the select – why is it not visible during the insert/select?
# cat twocol.txt
asdf1,qwerty1
asdf2,qwerty2
#cat twocol.sql
CREATE EXTERNAL TABLE twocol(
col1 STRING
,col2 STRING
)ROW FORMAT SERDE ‘org.apache.hadoop.hive.contrib.serde2.RegexSerDe’
WITH SERDEPROPERTIES (
“input.regex” = “([^,]\+),([^,]\+)”,
“output.format.string” = “%1$s %2$s”
)STORED AS TEXTFILE
LOCATION ‘/user/rupert/basic/twocol’ ;
# cat twocol2.sql
CREATE TABLE twocol2(
col1 STRING
,col2 STRING
);
hive -e “select * from twocol;” #works fine
hive -e “insert into twocol2 select * from twocol;” #fails with:
</div>