Re: Java librados issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the recommendation, Wido! I've just tried it - the segfault no longer occurs, but now there's a 'ENOENT: No such file or directory' error.

com.ceph.rados.exceptions.RadosNotFoundException: Failed to connect to the Ceph cluster; ENOENT: No such file or directory (-2)
    at com.ceph.rados.RadosBase.throwException(RadosBase.java:76)
    at com.ceph.rados.RadosBase.handleReturnCode(RadosBase.java:50)
    at com.ceph.rados.Rados.connect(Rados.java:160)

The config file is definitely found, but it's reading fails, for some reason. I've tried both with relative and absolute paths, but to no avail.

Any further recommendations are highly welcome.

Thanks,
Bogdan


On Tue, Dec 27, 2016 at 3:11 PM, Wido den Hollander <wido@xxxxxxxx> wrote:

> Op 26 december 2016 om 19:24 schreef Bogdan SOLGA <bogdan.solga@xxxxxxxxx>:
>
>
> Hello, everyone!
>
> I'm trying to integrate the Java port of librados
> <https://github.com/ceph/rados-java> into our app, using this
> <http://docs.ceph.com/docs/hammer/rados/api/librados-intro/#java-example>
> sample as a reference. As our cluster is not named 'ceph', I've tried to
> initialize the cluster using a different constructor, which takes the
> cluster name as a parameter.
>
> The issue - there's a segfault while loading the config file, which I can't
> circumvent. I presume it's caused by a mismatch between the JNA version and
> the librados version, but I can't pinpoint it.
>

I haven't tested that, but you do not need to specificy the cluster name perse. That's just the config file it looks for.

Could you just use the default constructor and then tell it to read a different config file?

Wido

> I've attached a thread dump, in case anyone is willing to take a look.
>
> Thank you, in advance!
>
> My best,
> Bogdan
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux