HDFS 与 GridFS:何时使用哪个?

发布于 2024-12-29 21:02:24 字数 61 浏览 2 评论 0原文

HDFS 和 GridFS 是分布式文件保存的两种出色技术,但它们有什么区别?哪种类型的问题更适合每种问题?

HDFS and GridFS are two great technologies for distributed file saving but what are their differences? What type of problems fit better to each?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

孤云独去闲 2025-01-05 21:02:24

HDFS 旨在用于批处理(您知道,当您运行一个查询时,该查询将一一读取许多文件),但是当您执行随机访问操作时,它真的很糟糕,而且维护它很痛苦,或者甚至部署(你知道,所有这些 Zookepers、Namenodes 等等)。另一方面,GridFS 在批量处理时速度较慢,但​​在进行大量随机访问的情况下则不然,但与 HDFS 相比,存储开销更大。

我想说你应该使用 HDFS 进行分析,使用 GridFS 来支持网站。

HDFS intended for batch processing (you're know, when you running a query that will read many of your files one-by-one), but really suck when you doing random access operations and it is pain in the neck to maintain it or even deploy (you're know, all of these Zookepers, Namenodes and so on). On the other hand GridFS is slower at batches, but not in the case when you do a lot of random accesses, but have a bigger storage overhead compared to HDFS.

I would say that you should use HDFS for analitycs and GridFS for backing web-site.

鸠魁 2025-01-05 21:02:24

如果您使用 Hadoop,请使用 HDFS;如果您使用 MongoDB,请使用 GridFS。对于仅存储随机文件来说也不是那么好。它们是为与分析平台配合使用而构建的。

Use HDFS if you are using Hadoop and use GridFS if you are using MongoDB. Neither are that great for just storing random files. They are built to work with the analytic platform.

·深蓝 2025-01-05 21:02:24

如果您只想存储文件而不进行任何分析和映射缩减作业,我建议您使用 GridFS。更容易定制和维护。我用于文件托管应用程序。在这种情况下,HFDS 就显得有些过分了。

I would recommend to use GridFS, if you are going only store your files without any analytic and map-reduce jobs. It's easier to customize and maintain. I used for file hosting application. HFDS in this case is overkill.

白衬杉格子梦 2025-01-05 21:02:24

GridFs 与其他文件系统相比有点慢...首先考虑其他文件系统,例如 ceph...

分布式文件系统 - 维基百科,免费百科全书 -> http://en.wikipedia.org/wiki/Distributed_file_system

我认为 HDFS 确实是 fs,但 GridfS 只是数据库网格

最后使用基准测试

GridFs is little slow vs other fs ... at first think about other FS like ceph ...

Distributed file system - Wikipedia, the free encyclopedia -> http://en.wikipedia.org/wiki/Distributed_file_system

i think HDFS is realy fs but GridfS is only database grid

at last use benchmark but hardly suggest something Distributed file system

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文