gpt4 book ai didi

hadoop-plugins - 如何使用 glusterfs-hadoop 插件?

转载 作者:行者123 更新时间:2023-12-04 06:37:51 25 4
gpt4 key购买 nike

我安装了 glusterfs 并且工作正常,之后我安装了 hadoop 1.x 并且在 hdfs 上工作正常,但是当我使用 glusterfs-hadoop 插件将 glusterfs 用作我的 hadoop 的文件系统后端时我得到错误,我使用 github 站点用于 glusterfs-hadoop 插件。并将 jar 文件复制到 hadoop 库目录,并将我的 core-site.xml 更改为:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>

<property>
<name>fs.glusterfs.impl</name>
<value>org.apache.hadoop.fs.glusterfs.GlusterFileSystem</value>
</property>

<property>
<name>fs.default.name</name>
<value>glusterfs://fedora1:9010</value>
</property>

<property>
<name>fs.AbstractFileSystem.glusterfs.impl</name>
<value>org.apache.hadoop.fs.local.GlusterFs</value>
</property>

<property>
<name>fs.glusterfs.volumes</name>
<value>test1</value>
</property>

<property>
<name>fs.glusterfs.volume.fuse.test1</name>
<value>/mnt/Hadoop</value>
</property>

</configuration>

当执行 start-mapred.sh 时,jobtracker 和 tasktracker 开始时没有任何问题,但是当执行这个命令“hadoop fs -mkdir ossl”时,我得到这个输出:

15/04/14 12:52:53 INFO glusterfs.GlusterVolume: Initializing gluster volume..
15/04/14 12:52:53 INFO glusterfs.GlusterFileSystem: Configuring GlusterFS
15/04/14 12:52:53 INFO glusterfs.GlusterFileSystem: Initializing GlusterFS, CRC disabled.
15/04/14 12:52:53 INFO glusterfs.GlusterFileSystem: GIT INFO={git.commit.id.abbrev=f0fee73, git.commit.user.email=bchilds@redhat.com, git.commit.message.full=Merge pull request #122 from childsb/getfattrparse

Refactor and cleanup the BlockLocation parsing code, git.commit.id=f0fee73c336ac19461d5b5bb91a77e05cff73361, git.commit.message.short=Merge pull request #122 from childsb/getfattrparse, git.commit.user.name=bradley childs, git.build.user.name=Unknown, git.commit.id.describe=GA-12-gf0fee73, git.build.user.email=Unknown, git.branch=master, git.commit.time=31.03.2015 @ 00:36:46 IRDT, git.build.time=12.04.2015 @ 14:45:49 IRDT}
15/04/14 12:52:53 INFO glusterfs.GlusterFileSystem: GIT_TAG=GA
15/04/14 12:52:53 INFO glusterfs.GlusterFileSystem: Configuring GlusterFS
15/04/14 12:52:53 INFO glusterfs.GlusterVolume: Initializing gluster volume..
15/04/14 14:36:01 INFO glusterfs.GlusterVolume: Gluster volume: test at : /mnt/hadoop
15/04/14 14:36:01 INFO glusterfs.GlusterVolume: Working directory is : /
15/04/14 14:36:01 INFO glusterfs.GlusterVolume: Write buffer size : 131072
15/04/14 14:36:01 INFO glusterfs.GlusterVolume: Default block size : 67108864
15/04/14 14:36:01 INFO glusterfs.GlusterVolume: Directory list order : fs ordering
15/04/14 14:36:01 INFO glusterfs.GlusterVolume: File timestamp lease significant digits removed : 0
mkdir: Error undefined volume:fedora1:9010 in path: glusterfs://fedora1:9010/ossl

请帮助我,谢谢你的回复。

最佳答案

如果我没记错的话这应该可行:

<property>
<name>fs.default.name</name>
<value>glusterfs:///fedora1:9010</value>
</property>

关于hadoop-plugins - 如何使用 glusterfs-hadoop 插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29624607/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com