如何使用 Ruby 在 MapR HDFS 中保存文件
有没有办法使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还在 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.