directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Fwd: ApacheDS "Tools" "dump" question
Date Thu, 29 Sep 2011 14:33:53 GMT
Forwarding to user ML


---------- Forwarded message ----------
From: Kiran Ayyagari <kayyagari@apache.org>
Date: Thu, Sep 29, 2011 at 10:33 AM
Subject: Re: ApacheDS "Tools" "dump" question
To: Steve Hayden <hshayden@yahoo.com>


replication in 1.5.7 is broken, version 2.0-M2 has support for
replication(it is an implementation of RFC4533 (a.k.a syncrepl ) )
If upgrading to 2.0-M2 is not an option then I would suggest you to
write a program to take the dump of the directory data(in LDIF)
Implementing this using ApacheDirectory project's client-api [1] is
quite easy, let me know if you have any questions.

[1] http://directory.apache.org/api/java-api.html
On Thu, Sep 29, 2011 at 10:17 AM, Steve Hayden <hshayden@yahoo.com> wrote:
> Greetings,
> Thanks for your prompt reply and information.
> Unfortunately using the Studio export/import is not an option in my
> application. What I am actually trying to do is to create a failover
> mechanism for when a "master" directory fails and must switch to another
> LDAP server (perhaps a sloave) that contains the same (or most of) the data
> contained in the master.  In the ApacheDS source code, there is some
> "replication" code, but it does not seem to do much/anything.
>
> Do you have any advice on how to implement failover/redundancy?
> Thanks in advance.
> Steve
> ________________________________
> From: Kiran Ayyagari <kayyagari@apache.org>
> To: users@directory.apache.org; Steve Hayden <hshayden@yahoo.com>
> Sent: Wednesday, September 28, 2011 5:58 PM
> Subject: Re: ApacheDS "Tools" "dump" question
>
> the tools project is quite old(broken) and not maintained at the moment
> if you want to take a dump would suggest to use Studio's export feature
>
> HTH
> On Wed, Sep 28, 2011 at 4:11 PM, Steve Hayden <hshayden@yahoo.com> wrote:
>> Greetings,
>>
>> I am attempting to use the "dump" utility contained in the
>> "apacheds-tools.jar"and am having some
>> difficulties. I am attempting this on a Windows 7 environment (and will
>> also need to do it on Linux).
>> I have tried this with the 1.5.5 and 1.5.7 versions of ApacheDS, and
>> "dump" does not seems to work on
>> either.  I have the "apacheds-tools.jar" in the folder:
>>
>> "C:\Software_Downloads\ApacheDS\apacheds_1.5.7\bin"
>>
>> and am using using the command:
>>
>> java -jar apacheds-tools.jar dump -p system -i C:\app\data\ldap
>>
>>
>> (the "schema" and "system" files that ApacheDS creates are in that "ldap"
>> folder). Executing the command
>> above results in the following exception:
>>
>> ***************** Begin of output/exceptions *************
>>        _                     _          ____ 
____    _____           _
>>       / \   _ __   __ _  ___| |__   ___|  _ \/ ___|  |_   _|__  
___ |
>> |___
>>      / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \    | |/ _ \ / _ \| /
>> __|
>>     / ___ \| |_) | (_| | (__| | | |  __/ |_| |___) |   | | (_) | (_) | \__
>> \
>>    /_/   \_\ .__/ \__,_|\___|_| |_|\___|____/|____/    |_|\___/
>> \___/|_|___/
>>            |_|
>>
>> Exception in thread "main" java.lang.IllegalStateException:
>> C:\ofm\data\ldap\bin does not exist!
>>         at
>> org.apache.directory.daemon.InstallationLayout.verifyInstallation(InstallationLayout.java:294)
>>         at
>> org.apache.directory.server.tools.DumpCommand.execute(DumpCommand.java:156)
>>         at
>> org.apache.directory.server.tools.ApachedsTools.main(ApachedsTools.java:112)
>>
>> ******************* End of output/exceptions *************
>>
>> As there does not appear to be a "bin" folder created by the ApacheDS
>> startup (or upon creation of a
>> new LDAP), it seems that the tool (given the ouput above) is expecting
>> that folder to exist.
>>
>> Is there something I'm doing wrong?
>>
>> Any insight/clue would be appreciated.
>>
>> Kindest regards/thanks,
>> Steve
>>
>
>
>
> --
> Kiran Ayyagari
>
>
>



--
Kiran Ayyagari



-- 
Kiran Ayyagari

Mime
View raw message