我正在逐步指导http://aws.amazon.com/articles/5249664154115844
步骤:创建输入表
hive>
CREATE EXTERNAL TABLE english_1grams (
gram string,
year int,
occurrences bigint,
pages bigint,
books bigint
)
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t'
STORED AS SEQUENCEFILE
LOCATION 's3://datasets.elasticmapreduce/ngrams/books/20090715/eng-all/1gram/';
我的系统内置:ubuntu +(hadoop +hive) 而不是 AWS(EC2) 所以我改变了LOCATION -> LOCATION 'home/hduser/googlebook'
文件夹 googlebook 获得:所有文件,我在http://storage.googleapis.com/books/ngrams/books/datasetsv2.html 第 2 版下载
所以我有一个问题是当我查询时
hive>SELECT * from ngrams
结果是 0 -> 数据库没有数据?我该怎么办 ??