摘要:
hive文件存储格式包括以下几类:1、TEXTFILE2、SEQUENCEFILE3、RCFILE4、ORCFILE(0.11以后出现)其中TEXTFILE为默认格式,建表时不指定默认为这个格式,导入数据时会直接把数据文件拷贝到hdfs上不进行处理;SEQUENCEFILE,RCFILE,ORCFILE格式的表不能直接从本地文件导入数据,数据要先导入到textfile格式的表中, 然后再从表中用insert导入SequenceFile,RCFile,ORCFile表中。前提创建环境:hive 0.8创建一张testfile_table表,格式为textfile。create table if 阅读全文
posted @ 2014-03-20 14:23
I’m Me!
阅读(24361)
评论(0)
推荐(0)
摘要:
在创建表的时候报出如下错误:hive> create table if not exists testfile_table( > site string, > url string, > pv bigint, > label string) > row format delimited > fields terminated by '\t' > stored as textfile;FAILED: Error in metadata: javax.jdo.JDODataStoreException: Insert of objec 阅读全文
posted @ 2014-03-20 11:57
I’m Me!
阅读(2731)
评论(0)
推荐(0)

浙公网安备 33010602011771号