首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >S3上的LZO文件问题

问S3上的LZO文件问题
EN

Stack Overflow用户
提问于 2015-12-04 18:52:21
回答 1查看 174关注 0票数 0

我在HDFS中有3个LZO压缩文件和它们对应的索引文件。

代码语言:javascript
复制
Permission  Owner   Group   Size    Replication Block Size  Name
-rw-r--r--  alum    supergroup  0 B 3   128 MB  _SUCCESS
-rw-r--r--  alum    supergroup  192.29 MB   3   128 MB  part-00000.lzo
-rw-r--r--  alum    supergroup  89.56 KB    3   128 MB  part-00000.lzo.index
-rw-r--r--  alum    supergroup  243.09 MB   3   128 MB  part-00001.lzo
-rw-r--r--  alum    supergroup  106.67 KB   3   128 MB  part-00001.lzo.index
-rw-r--r--  alum    supergroup  163.99 MB   3   128 MB  part-00002.lzo
-rw-r--r--  alum    supergroup  70.54 KB    3   128 MB  part-00002.lzo.index

我们将这些文件复制到亚马逊S3,并创建了用于分析的配置单元外部表。

这是我们面临的问题,

代码语言:javascript
复制
1) LZO index files are also being treated as data files and meaningless data appears in hive tables
2) "count(*)" query on the table spans only 4 mappers. Indicating problem in splitting.

你能告诉我S3是怎么回事吗?它在我们的纱线集群中工作得很好。

EN

回答 1

Stack Overflow用户

发布于 2015-12-04 19:47:00

s3的处理方式与HDFS不同。不需要像在HDFS中那样应用分割逻辑。请记住,s3是云存储,而不是本地存储。在s3中,您的文件不会以块的形式存在。这是意料之中的行为。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34086649

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档