From: ramu Subject: Re: How to compile Java-Rados. Date: Tue, 17 Jul 2012 05:39:20 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from plane.gmane.org ([80.91.229.3]:33571 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170Ab2GQFje (ORCPT ); Tue, 17 Jul 2012 01:39:34 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sr0VP-0006tJ-NJ for ceph-devel@vger.kernel.org; Tue, 17 Jul 2012 07:39:32 +0200 Received: from 81-254-187-203.static.youbroadband.in ([81-254-187-203.static.youbroadband.in]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Jul 2012 07:39:31 +0200 Received: from ramu.freesystems by 81-254-187-203.static.youbroadband.in with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Jul 2012 07:39:31 +0200 Sender: ceph-devel-owner@vger.kernel.org List-ID: To: ceph-devel@vger.kernel.org Hi Noah, I hardcoded CONF_FIL="/etc/ceph/ceph.conf"; and commented //System.getProperty("CEPH_CONF_FILE"); in RadosTestUtils.java. And run the ant and after run ant test,but iam getting same error. Buildfile: /home/vu/java-rados/build.xml makedir: compile-rados: compile-tests: [javac] Compiling 1 source file to /home/vu/java-rados/build/test jar: test: [junit] Running ClusterStatsTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.068 sec BUILD FAILED /home/vu/java-rados/build.xml:134: Test ClusterStatsTest failed Total time: 2 seconds and in TEST-ClusterStatsTest.txt file also getting same errors, Testsuite: ClusterStatsTest Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.068 sec Testcase: test_ClusterStats took 0.036 sec Caused an ERROR rados_connect: ret=-1 net.newdream.ceph.rados.RadosException: rados_connect: ret=-1 at net.newdream.ceph.rados.Cluster.native_connect(Native Method) at net.newdream.ceph.rados.Cluster.connect(Unknown Source) at ClusterStatsTest.setup(Unknown Source) -->How to give CEPH_ARGS. Thanks, Ramu.