BenachMark test cases are using the BookKeeperClusterTestCase#setup() to set up 
the bookie cluster. 
Here it is configuring the journal & ledger dirs relative to the 'tmp' path. 
Thats the reason for always pointing to the /tmp.

One way is, we can modify the below with your own custom dirs.
BookKeeperClusterTestCase#newServerConfiguration()
        File f = File.createTempFile("bookie", "test");


For this we can introduce 'System property' and get the test dir like below. 
Now this directory can be used instead of File f = 
File.createTempFile("bookie", "test");

BookKeeperClusterTestCase#setup()

        String tmpDir = System.getProperty("build.test.dirs");
        if(StringUtils.isBlank(tmpDir)){
            tmpdir = new File("build/test/tmp");
            tmpdir.mkdirs();
        } else{
            tmpdir = new File(tmpDir);
            tmpdir.delete();
            tmpdir.mkdirs();
        }

Regards,
Rakesh

-----Original Message-----
From: Jaln [mailto:[email protected]] 
Sent: 05 June 2014 09:30
To: [email protected]
Subject: how to change values in bk_server.conf

Hi,
I wang to change the value of the two parameters journalDirectory and 
ledgerDirectories, but it doesn't work.
the benchmark writes still goes to the /tmp, which is the default.
Do you have any solutions?

Best,
Jaln

Reply via email to