如何使用 Ruby 在 MapR HDFS 中保存文件

发布于 2024-12-27 13:46:26 字数 130 浏览 5 评论 0原文

有没有办法使用 Ruby 中的 Hadoop MapR 发行版将文件保存在 HDFS 中?

显然,有一个名为 thriftfs 的 Thrift API,可以从客户端与 HDFS 进行通信,但看起来它没有与 MapR 捆绑在一起。

Is there a way to save a file in HDFS using MapR distribution of Hadoop from Ruby?

Apparently, there's a Thrift API called thriftfs that makes it possible to communicate with HDFS from clients but looks like it is not bundled with MapR.

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

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

发布评论

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

评论(1

爱已欠费 2025-01-03 13:46:26

我还在 http 回答了这个问题://answers.mapr.com/questions/1525/how-to-run-thriftfs-from-mapr?page=1#1528

基本思想是像 Ruby 这样的语言不需要特定于语言的绑定来访问 MapR 集群的文件系统。相反,您所需要做的就是将集群挂载为 NFS 文件系统,然后您就可以进行任何您能想到的文件访问。这使得 Hadoop 环境中的脚本编写变得更加容易。

I also answered this question at http://answers.mapr.com/questions/1525/how-to-run-thriftfs-from-mapr?page=1#1528

The basic idea is that languages like Ruby don't need language specific bindings to get access to the file system of a MapR cluster. Instead, all you need to do is mount the cluster as an NFS file system and you are good to go with any file access that you can dream up. This makes scripting in a Hadoop environment vastly easier.

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