Last active
August 23, 2020 18:18
-
-
Save ragingbal/9f2ed79613747e157fa37924947766a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE testjoins.yt_sample_mapping_1( | |
`col1` string, | |
`col2` string, | |
`col3` string) | |
ROW FORMAT SERDE "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe" | |
WITH SERDEPROPERTIES ( "separatorChar" = ",", | |
"quoteChar" = "\"", | |
"escapeChar" = "\\", | |
"serialization.encoding"='ISO-8859-1') | |
TBLPROPERTIES ( 'store.charset'='ISO-8859-1', | |
'retrieve.charset'='ISO-8859-1'); | |
CREATE EXTERNAL TABLE `mydb`.`ct_ajay`(`col1` string, `col2` string) | |
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | |
WITH SERDEPROPERTIES ( | |
'serialization.format' = '1', | |
'line.delim' = ' | |
', | |
'field.delim' = '1' | |
) | |
STORED AS | |
INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' | |
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' | |
LOCATION 'maprfs:/myfolder/ct_ajay' | |
TBLPROPERTIES ( | |
'transient_lastDdlTime' = '1555387723' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment