hive创建表时ascii编码与unicode编码的对应
来源:互联网 发布:金芒网络电玩城 编辑:程序博客网 时间:2024/04/30 10:35
CREATE TABLE page_view(viewTime INT, userid BIGINT,
page_url STRING, referrer_url STRING,
ip STRING COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY(dt STRING, country STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\001'
STORED AS textfile;
hive> show create table page_view;
OK
CREATE TABLE `page_view`(
`viewtime` int,
`userid` bigint,
`page_url` string,
`referrer_url` string,
`ip` string COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY (
`dt` string,
`country` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\u0001'
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'hdfs://ytns1/user/hive/warehouse/test.db/page_view'
TBLPROPERTIES (
'transient_lastDdlTime'='1487572774')
Time taken: 0.328 seconds, Fetched: 20 row(s)
--------------------------------------------------------------------
CREATE TABLE page_view2(viewTime INT, userid BIGINT,
page_url STRING, referrer_url STRING,
ip STRING COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY(dt STRING, country STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\036'
STORED AS textfile;
hive> show create table page_view2;
OK
CREATE TABLE `page_view2`(
`viewtime` int,
`userid` bigint,
`page_url` string,
`referrer_url` string,
`ip` string COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY (
`dt` string,
`country` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\u001E'
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'hdfs://ytns1/user/hive/warehouse/test.db/page_view2'
TBLPROPERTIES (
'transient_lastDdlTime'='1487572944')
Time taken: 0.118 seconds, Fetched: 20 row(s)
-----------------------------------------------------------------------
CREATE TABLE page_view3(viewTime INT, userid BIGINT,
page_url STRING, referrer_url STRING,
ip STRING COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY(dt STRING, country STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\002'
STORED AS textfile;
hive> show create table page_view3;
OK
CREATE TABLE `page_view3`(
`viewtime` int,
`userid` bigint,
`page_url` string,
`referrer_url` string,
`ip` string COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY (
`dt` string,
`country` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\u0002'
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'hdfs://ytns1/user/hive/warehouse/test.db/page_view3'
TBLPROPERTIES (
'transient_lastDdlTime'='1487573211')
Time taken: 0.106 seconds, Fetched: 20 row(s)
------------------------------------------------------------------
CREATE TABLE page_view4(viewTime INT, userid BIGINT,
page_url STRING, referrer_url STRING,
ip STRING COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY(dt STRING, country STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\003'
STORED AS textfile;
hive> show create table page_view4;
OK
CREATE TABLE `page_view4`(
`viewtime` int,
`userid` bigint,
`page_url` string,
`referrer_url` string,
`ip` string COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY (
`dt` string,
`country` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\u0003'
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'hdfs://ytns1/user/hive/warehouse/test.db/page_view4'
TBLPROPERTIES (
'transient_lastDdlTime'='1487573249')
Time taken: 0.114 seconds, Fetched: 20 row(s)
page_url STRING, referrer_url STRING,
ip STRING COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY(dt STRING, country STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\001'
STORED AS textfile;
hive> show create table page_view;
OK
CREATE TABLE `page_view`(
`viewtime` int,
`userid` bigint,
`page_url` string,
`referrer_url` string,
`ip` string COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY (
`dt` string,
`country` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\u0001'
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'hdfs://ytns1/user/hive/warehouse/test.db/page_view'
TBLPROPERTIES (
'transient_lastDdlTime'='1487572774')
Time taken: 0.328 seconds, Fetched: 20 row(s)
--------------------------------------------------------------------
CREATE TABLE page_view2(viewTime INT, userid BIGINT,
page_url STRING, referrer_url STRING,
ip STRING COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY(dt STRING, country STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\036'
STORED AS textfile;
hive> show create table page_view2;
OK
CREATE TABLE `page_view2`(
`viewtime` int,
`userid` bigint,
`page_url` string,
`referrer_url` string,
`ip` string COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY (
`dt` string,
`country` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\u001E'
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'hdfs://ytns1/user/hive/warehouse/test.db/page_view2'
TBLPROPERTIES (
'transient_lastDdlTime'='1487572944')
Time taken: 0.118 seconds, Fetched: 20 row(s)
-----------------------------------------------------------------------
CREATE TABLE page_view3(viewTime INT, userid BIGINT,
page_url STRING, referrer_url STRING,
ip STRING COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY(dt STRING, country STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\002'
STORED AS textfile;
hive> show create table page_view3;
OK
CREATE TABLE `page_view3`(
`viewtime` int,
`userid` bigint,
`page_url` string,
`referrer_url` string,
`ip` string COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY (
`dt` string,
`country` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\u0002'
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'hdfs://ytns1/user/hive/warehouse/test.db/page_view3'
TBLPROPERTIES (
'transient_lastDdlTime'='1487573211')
Time taken: 0.106 seconds, Fetched: 20 row(s)
------------------------------------------------------------------
CREATE TABLE page_view4(viewTime INT, userid BIGINT,
page_url STRING, referrer_url STRING,
ip STRING COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY(dt STRING, country STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\003'
STORED AS textfile;
hive> show create table page_view4;
OK
CREATE TABLE `page_view4`(
`viewtime` int,
`userid` bigint,
`page_url` string,
`referrer_url` string,
`ip` string COMMENT 'IP Address of the User')
COMMENT 'This is the page view table'
PARTITIONED BY (
`dt` string,
`country` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\u0003'
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'hdfs://ytns1/user/hive/warehouse/test.db/page_view4'
TBLPROPERTIES (
'transient_lastDdlTime'='1487573249')
Time taken: 0.114 seconds, Fetched: 20 row(s)
0 1
- hive创建表时ascii编码与unicode编码的对应
- ASCII编码与Unicode编码
- ASCII编码与Unicode编码
- ASCII编码与Unicode编码
- AscII与Unicode编码
- 扩展ASCII码字符对应UNICODE编码
- 探究Unicode与ASCII编码
- Unicode编码与字符对应表程序
- Unicode编码与字符对应表程序
- 10 ASCII编码与Unicode编码
- 汉字对应的unicode编码
- 编码方式MultiByte(ASCII)与WideChar(UNICODE)的相互转化
- 字符编码ASCII、UNICODE与UTF8,UTF16的含义等
- ASCII,Unicode和UTF-8编码的区别与联系
- ASCII编码 和 UNICODE编码
- ASCII编码和Unicode编码
- 再次探究Unicode与ASCII编码
- Unicode ASCII 编码转换
- bzoj 4292 枚举
- Monkey入门
- 主设备号和次设备号
- Linux命令(38):diff
- Android Studio Execution failed for task ':app:transformClassesWithInstantRunForDebug'
- hive创建表时ascii编码与unicode编码的对应
- Spring怎样更好的用JUnit进行单元测试
- angular指令ng-xxx
- 背包问题2
- 背着无人机去 5A 景区旅行,简直酷毙了
- hadoop 安装+本地运行wordCount
- hive内置函数
- Zookeeper启动zkServer.cmd闪退
- 【国际揭秘】丨谁是神秘社工库LeakedSource的管理员?