Hi,
I've did it all in the same directory nothing better, then I've try :
C:\ProjectMLSQL> java -cp
C:\Tools\RecordLoader\recordloader.jar;C:\Tools\RecordLoader\xcc.jar;C:\Tools\RecordLoader\xpp3-1.1.4c.jar
-DID_NAME=#FILENAME -DCONNECTION_STRING=xcc://<server>:9041/MarkLogicAccess
-DINPUT_PATH=C:\ProjectMLSQL\ImportToML com.marklogic.ps.RecordLoader *.xml
All my 70 000 files are uploaded.
With Ant same issue as yesterday: it's skipping my option !
<target name="RecordLoaderOnMl"> <java
classname="com.marklogic.ps.RecordLoader" classpath="${RecordLoaderClasspath}"
> <arg value="-DID_NAME=#FILENAME"/> <arg
value="-DCONNECTION_STRING=${marklogic.server}"/> <arg
value="-DOUTPUT_COLLECTIONS=Products"/> <arg
value="-DINPUT_PATH=${DirImport}"/> <arg value="*.xml"/>
</java> </target
[java] ATTENTION: skipping
-DCONNECTION_STRING=xcc:\<server>:9041\MarkLogicAccess: file does not exist.
[java] 29 juil. 2010 15:41:39 com.marklogic.recordloader.DefaultInputHandler
checkPath [java] ATTENTION: skipping -DOUTPUT_COLLECTIONS=Products: file
does not exist. [java] 29 juil. 2010 15:41:39
com.marklogic.recordloader.DefaultInputHandler checkPath [java] ATTENTION:
skipping -DINPUT_PATH=C:\ProjectMLSQL\ImportToML: file does not exist.
[java] 29 juil. 2010 15:41:39 com.marklogic.recordloader.DefaultInputHandler
checkPath [java] ATTENTION: skipping *.xml: file does not exist. [java]
29 juil. 2010 15:41:39 com.marklogic.recordloader.Monitor halt
I'm asking myself if this is not a -slash issue but i've try back-slashes,
forward-slashes, same error.Maybe i'll use a .bat for that task !
And what can I use to send Xquery on my XML base ? I mean do I need some
special lib ? (For Ant)
Thank you for your time !
Kind Regards,Arnaud Roch
> From: [email protected]
> To: [email protected]
> Date: Wed, 28 Jul 2010 10:25:42 +0200
> Subject: Re: [MarkLogic Dev General] Ant and Marklogic
>
> Hi Arnaud,
>
> Your approach sounds reasonable enough. I'm not a record loader expert, but
> with ant most issues I have are always concerning execution directory. You
> direct call from the command line is run from c:\tools\recordloader, but from
> where are you running ant? Same dir? I also recommend using arg value above
> arg line. If there could be spaces in your filenames, then they could mean
> trouble when using arg line..
>
> Kind regards,
> Geert
>
> >
>
>
> drs. G.P.H. (Geert) Josten
> Consultant
>
> Daidalos BV
> Hoekeindsehof 1-4
> 2665 JZ Bleiswijk
>
> T +31 (0)10 850 1200
> F +31 (0)10 850 1199
>
> mailto:[email protected]
> http://www.daidalos.nl/
>
> KvK 27164984
>
>
> De informatie - verzonden in of met dit e-mailbericht - is afkomstig van
> Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
> bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
> bericht kunnen geen rechten worden ontleend.
>
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of
> > Arnaud Roch
> > Sent: woensdag 28 juli 2010 9:04
> > To: [email protected]
> > Subject: [MarkLogic Dev General] Ant and Marklogic
> >
> > Hi,
> >
> > I'm working with Ant to empty a MarkLogic database and load a
> > large amount of XML files (~70 000 files for ~3 ko each) on
> > this empty one.
> >
> > Now, I'm using RecordLoad, I'm reading the tutorial, try some
> > command from windows' cmd and so on.
> >
> > My problem is with this command (the first I've try):
> >
> > C:\Tools\RecordLoader>java -cp
> > recordloader.jar;xcc.jar;xpp3-1.1.4c.jar -DID_NAME=#FILENAME
> > -DCONNECTION_STRING=xcc://<mystringconnection>:9041/MyDB
> > com.marklogic.ps.RecordLoader
> >
> > I just wanted to see if it works (and it works)
> >
> > Then, I put this in Ant :
> >
> > <java classname="com.marklogic.ps.RecordLoader"
> > classpath="${RecordLoaderClasspath}">
> > <arg line="-DID_NAME=#FILENAME"/>
> > <arg line="-DCONNECTION_STRING=${marklogic.server}"/>
> > </java>
> >
> > I start my ant command : ant -f exportMLSQL recordTest
> >
> > Then I can see that it's skipping my option ID_NAME and
> > CONNECTION_STRING ! Why ? I've try with "value" instead of
> > "line" same error.
> >
> > There is Exception too :[java]
> > com.marklogic.recordloader.FatalException: input files
> > specified, but none found .
> >
> > I didn't see any INPUT_FILE(S) in the RecordLoader README.
> >
> > Am I doing it wrong ? It's maybe another Trainee's Fail ! :)
> >
> > Other question is there an other/better solution to access a
> > MarkLogic database with Ant ?
> >
> > ________________________________
> >
> > Votre vie privée l'est-elle vraiment ? Internet Explorer 8
> > vous protège gratuitement
> > <http://clk.atdmt.com/FRM/go/232102478/direct/01/>
> >
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general