[Gluster-users] help friend :java nio problem

Trygve Hardersen trygve at jotta.no
Tue Jun 30 07:39:29 UTC 2009


I don't think your example would copy the file correctly, but I'm getting
the same error when I run a similar test on our file system. It works on the
local file system.

Trygve

On Mon, Jun 29, 2009 at 4:59 PM, eagleeyes <eagleeyes at 126.com> wrote:

>  Thanks  ,the attachment is a java nio with mmap , You could use it for
> testing
> You should  mount  GFS at  directory /alfresco ,and  touch a  file named
> file.txt  with some words , then in the /alfresco  implement "javac
> FcTest.java " and "java FcTest " ,if create outFile.txt which have the same
> words with   file.txt  ,the test is success . if there is some error like :
> [root at iaas-1 alfresco]# java FcTest  > java.io.IOException: No such device
> >         at sun.nio.ch.FileChannelImpl.map0(Native Method)
> >         at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:747)
> >         at FcTest.main(FcTest.java:18)
> the test is fault
>
>
> 2009-06-29
> ------------------------------
>  eagleeyes
> ------------------------------
> *发件人:* Trygve Hardersen
> *发送时间:* 2009-06-29  19:36:54
> *收件人:* eagleeyes
> *抄送:* Anand Babu
> *主题:* Re: help friend :java nio problem
>  Hello
>
> Can you send me a snippet of the NIO code that you're using? We're using
> NIO, but probably not the mmap function.
>
> Trygve
>
> On Mon, Jun 29, 2009 at 8:47 AM, eagleeyes <eagleeyes at 126.com> wrote:
>
>>  Dear friends  :
>>     You had said that you used java nio with gluster very well ,Could you
>> help me ?
>>      My java nio used mmap model not position model , so  nio couldn't
>> creat files  into gluster directory .
>>     What your successed configure ? I couldn't find  fuse mmap operation
>> in Gluster source codes .
>>
>> 2009-06-29
>> ------------------------------
>> eagleeyes
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20090630/f39d74ff/attachment.html>


More information about the Gluster-users mailing list