Re: [MarkLogic Dev General] command line interface

2013-04-19 Thread Gary Larsen
Thank you!

 

(got busy on other stuff today)

 

Gary 

 

From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee
Sent: Friday, April 19, 2013 9:47 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] command line interface

 

xmlsh works great on windows (that is where I do 90% of my ML development)

With the marklogic module you can execute ad-hoc as well as stored queries.

It is fully scriptable and can be called by any program that call call
either java directly

or via a process command-line

 

http://www.xmlsh.org/HomePage

http://www.xmlsh.org/ModuleMarkLogic


-

David Lee
Lead Engineer
MarkLogic Corporation
d...@marklogic.com
Phone: +1 812-482-5224

Cell:  +1 812-630-7622
www.marklogic.com  

 

From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gary Larsen
Sent: Friday, April 19, 2013 9:44 AM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] command line interface

 

Hi,

 

Is there a command line interface for Windows to execute a query?   XQRunner
looked like a possibility but could not locate any examples on how this
works.

 

Thanks,

Gary 

 

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Record Loader - not ableloabinaryfiles (pdf, images)

2013-04-19 Thread Michael Blakeley
Hmm On second thought that approach won't work, because the input documents 
are binary. The content module interface only handles XML. I believe this is 
the first time anyone has asked for binary support.

You could try patching recordloader/xcc/XccModuleContent.java to support this. 
I don't think XCC can handle setting binary nodes as external variables for a 
request object. But what should work is to convert the binary node into a 
Base64-encoded string. Then the module would have to convert it back to binary, 
of course.

It might be a good idea to extend the content module interface with a new 
variable too, so that the module knows what the input document-type is. 
Strictly speaking that isn't necessary because the document-type is fixed for a 
single invocation of RecordLoader, but it still seems like the right thing to 
do.

-- Mike

On 19 Apr 2013, at 13:46 , Michael Blakeley  wrote:

> It sounds like you are looking for this:
> 
> CONTENT_FACTORY_CLASSNAME=com.marklogic.recordloader.xcc.XccModuleContentFactory
> CONTENT_MODULE_URI=my-code-module.xqy
> 
> Note that the content module has to conform to a strict interface. See 
> http://marklogic.github.io/recordloader/ for details and sample code.
> 
> -- Mike
> 
> On 19 Apr 2013, at 12:59 , Mohanraj Chozhan  
> wrote:
> 
>> Thank you very much its worked Brilliantly.
>> 
>> Also I need how to inject the xqy files to write my business logic to move 
>> the documents into ML Directory from the record loader.
>> 
>> 
>> -Original Message-
>> From: general-boun...@developer.marklogic.com 
>> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael 
>> Blakeley
>> Sent: Saturday, April 20, 2013 1:00 AM
>> To: MarkLogic Developer Discussion
>> Subject: Re: [MarkLogic Dev General] Record Loader - not able to load binary 
>> files (pdf, images)
>> 
>> I asked for *full* logs: you've left out much of the interesting setup and 
>> configuration.
>> 
>> However there is just enough here to see the problem: INPUT_PATTERN isn't 
>> set, so it's using the default value, which only matching *.xml filenames. 
>> From http://marklogic.github.io/recordloader/
>> 
>> Property default value   notes
>> INPUT_PATTERN^.+\\.[Xx][Mm][Ll]$ Matching pattern (regex) for 
>> files found in INPUT_PATH. The default value matches all filenames ending 
>> with .xml
>> 
>> RecordLoader isn't using your files because it's only looking for filenames 
>> that match the regex '^.+\\.[Xx][Mm][Ll]$'. Try something like 
>> INPUT_PATTERN=.+\\.(PDF|JPG|pdf|jpg)$ instead.
>> 
>> -- Mike
>> 
>> On 19 Apr 2013, at 12:24 , Mohanraj Chozhan  
>> wrote:
>> 
>>> Recordloader logs
>>> 
>>> Apr 20, 2013 12:51:06 AM 
>>> com.marklogic.recordloader.DefaultInputHandler configureInputs
>>> INFO: adding D:/test/
>>> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.LoaderFactory 
>>> 
>>> INFO: Loader is com.marklogic.recordloader.FileLoader
>>> Apr 20, 2013 12:51:06 AM 
>>> com.marklogic.recordloader.DefaultInputHandler run
>>> INFO: populating queue
>>> Apr 20, 2013 12:51:06 AM 
>>> com.marklogic.recordloader.DefaultInputHandler run
>>> INFO: queued 0 loader(s)
>>> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor halt
>>> INFO: halting
>>> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor run
>>> INFO: loaded 0 records ok (0 B in 0.5075154 s, 0 tps, 0 kB/s), with 0 
>>> error(s)
>>> 
>>> 
>>> In the D:/test  test directory I have pdf and jpg files but showing 0 files 
>>>  only.
>>> 
>>> 
>>> 
>>> -Original Message-
>>> From: general-boun...@developer.marklogic.com 
>>> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael 
>>> Blakeley
>>> Sent: Saturday, April 20, 2013 12:36 AM
>>> To: MarkLogic Developer Discussion
>>> Subject: Re: [MarkLogic Dev General] Record Loader - not able to load 
>>> binary files (pdf, images)
>>> 
>>> If you can provide the full RecordLoader logs we may be able to diagnose 
>>> the problem.
>>> 
>>> One potential problem I see is that your CONNECTION_STRING doesn't seem to 
>>> have a username or password.
>>> 
>>> -- Mike
>>> 
>>> On 19 Apr 2013, at 11:36 , Mohanraj Chozhan  
>>> wrote:
>>> 
 Which version of MarkLogic are you using?
 We are using ML6.
 
 Which version of RecordLoader?
 
 recordloader.jar - We can't find the version xpp3-1.1.3_8.jar
 
 What's the exact command you're issuing to invoke the JAR?
 
 We are using the below code to execute the recordloader
 
 String[] args = { "resources/ recordloader.properties " };
 try {
RecordLoader.main(args);
 } catch (Exception e) {
throw new MarocMLDBException("Uploading bulk files 
 unseccessful", e);
 }
 recordloader.properties
 
 CONNECTION_STRING=xcc://localhost:8100/test
 INPUT_PATH=D:/test
 OUTPUT_COLLECTIONS=wikipedia
 DOCMENT_TYPE=binary
 URI_PREF

Re: [MarkLogic Dev General] Record Loader - not ableloabinaryfiles (pdf, images)

2013-04-19 Thread Michael Blakeley
It sounds like you are looking for this:

CONTENT_FACTORY_CLASSNAME=com.marklogic.recordloader.xcc.XccModuleContentFactory
CONTENT_MODULE_URI=my-code-module.xqy

Note that the content module has to conform to a strict interface. See 
http://marklogic.github.io/recordloader/ for details and sample code.

-- Mike

On 19 Apr 2013, at 12:59 , Mohanraj Chozhan  
wrote:

> Thank you very much its worked Brilliantly.
> 
> Also I need how to inject the xqy files to write my business logic to move 
> the documents into ML Directory from the record loader.
> 
> 
> -Original Message-
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael Blakeley
> Sent: Saturday, April 20, 2013 1:00 AM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Record Loader - not able to load binary 
> files (pdf, images)
> 
> I asked for *full* logs: you've left out much of the interesting setup and 
> configuration.
> 
> However there is just enough here to see the problem: INPUT_PATTERN isn't 
> set, so it's using the default value, which only matching *.xml filenames. 
> From http://marklogic.github.io/recordloader/
> 
> Property  default value   notes
> INPUT_PATTERN ^.+\\.[Xx][Mm][Ll]$ Matching pattern (regex) for files 
> found in INPUT_PATH. The default value matches all filenames ending with .xml
> 
> RecordLoader isn't using your files because it's only looking for filenames 
> that match the regex '^.+\\.[Xx][Mm][Ll]$'. Try something like 
> INPUT_PATTERN=.+\\.(PDF|JPG|pdf|jpg)$ instead.
> 
> -- Mike
> 
> On 19 Apr 2013, at 12:24 , Mohanraj Chozhan  
> wrote:
> 
>> Recordloader logs
>> 
>> Apr 20, 2013 12:51:06 AM 
>> com.marklogic.recordloader.DefaultInputHandler configureInputs
>> INFO: adding D:/test/
>> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.LoaderFactory 
>> 
>> INFO: Loader is com.marklogic.recordloader.FileLoader
>> Apr 20, 2013 12:51:06 AM 
>> com.marklogic.recordloader.DefaultInputHandler run
>> INFO: populating queue
>> Apr 20, 2013 12:51:06 AM 
>> com.marklogic.recordloader.DefaultInputHandler run
>> INFO: queued 0 loader(s)
>> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor halt
>> INFO: halting
>> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor run
>> INFO: loaded 0 records ok (0 B in 0.5075154 s, 0 tps, 0 kB/s), with 0 
>> error(s)
>> 
>> 
>> In the D:/test  test directory I have pdf and jpg files but showing 0 files  
>> only.
>> 
>> 
>> 
>> -Original Message-
>> From: general-boun...@developer.marklogic.com 
>> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael 
>> Blakeley
>> Sent: Saturday, April 20, 2013 12:36 AM
>> To: MarkLogic Developer Discussion
>> Subject: Re: [MarkLogic Dev General] Record Loader - not able to load 
>> binary files (pdf, images)
>> 
>> If you can provide the full RecordLoader logs we may be able to diagnose the 
>> problem.
>> 
>> One potential problem I see is that your CONNECTION_STRING doesn't seem to 
>> have a username or password.
>> 
>> -- Mike
>> 
>> On 19 Apr 2013, at 11:36 , Mohanraj Chozhan  
>> wrote:
>> 
>>> Which version of MarkLogic are you using?
>>> We are using ML6.
>>> 
>>> Which version of RecordLoader?
>>> 
>>> recordloader.jar - We can't find the version xpp3-1.1.3_8.jar
>>> 
>>> What's the exact command you're issuing to invoke the JAR?
>>> 
>>> We are using the below code to execute the recordloader
>>> 
>>> String[] args = { "resources/ recordloader.properties " };
>>>  try {
>>> RecordLoader.main(args);
>>>  } catch (Exception e) {
>>> throw new MarocMLDBException("Uploading bulk files 
>>> unseccessful", e);
>>>  }
>>> recordloader.properties
>>> 
>>> CONNECTION_STRING=xcc://localhost:8100/test
>>> INPUT_PATH=D:/test
>>> OUTPUT_COLLECTIONS=wikipedia
>>> DOCMENT_TYPE=binary
>>> URI_PREFIX=/FR/
>>> 
>>> What's the error message you're getting?
>>> XML files are getting load into ML repository.
>>> 
>>> Can you provide the MLCP Sample working , We tried and unable to use it.
>>> 
>>> That's reason we are using chosen recordloader.
>>> 
>>> It will more helpful if we get the sample of MLCP to use.
>>> 
>>> Thanks in advance
>>> 
>>> Mohanraj
>>> 
>>> From: general-boun...@developer.marklogic.com
>>> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin 
>>> Makeig
>>> Sent: Friday, April 19, 2013 11:49 PM
>>> To: MarkLogic Developer Discussion
>>> Subject: Re: [MarkLogic Dev General] Record Loader - not able to 
>>> load binary files (pdf, images)
>>> 
>>> Which version of MarkLogic are you using? Which version of RecordLoader? 
>>> What's the exact command you're issuing to invoke the JAR? What's the error 
>>> message you're getting? If you're using MarkLogic 6, you might also take a 
>>> look at mlcp .
>>> 
>>> Justin
>>> 
>>> Justin Makeig
>>> Direc

Re: [MarkLogic Dev General] Record Loader - not ableloabinaryfiles (pdf, images)

2013-04-19 Thread Mohanraj Chozhan
Thank you very much its worked Brilliantly.

Also I need how to inject the xqy files to write my business logic to move the 
documents into ML Directory from the record loader.


-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael Blakeley
Sent: Saturday, April 20, 2013 1:00 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Record Loader - not able to load binary 
files (pdf, images)

I asked for *full* logs: you've left out much of the interesting setup and 
configuration.

However there is just enough here to see the problem: INPUT_PATTERN isn't set, 
so it's using the default value, which only matching *.xml filenames. From 
http://marklogic.github.io/recordloader/

Propertydefault value   notes
INPUT_PATTERN   ^.+\\.[Xx][Mm][Ll]$ Matching pattern (regex) for files 
found in INPUT_PATH. The default value matches all filenames ending with .xml

RecordLoader isn't using your files because it's only looking for filenames 
that match the regex '^.+\\.[Xx][Mm][Ll]$'. Try something like 
INPUT_PATTERN=.+\\.(PDF|JPG|pdf|jpg)$ instead.

-- Mike

On 19 Apr 2013, at 12:24 , Mohanraj Chozhan  
wrote:

> Recordloader logs
>  
> Apr 20, 2013 12:51:06 AM 
> com.marklogic.recordloader.DefaultInputHandler configureInputs
> INFO: adding D:/test/
> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.LoaderFactory 
> 
> INFO: Loader is com.marklogic.recordloader.FileLoader
> Apr 20, 2013 12:51:06 AM 
> com.marklogic.recordloader.DefaultInputHandler run
> INFO: populating queue
> Apr 20, 2013 12:51:06 AM 
> com.marklogic.recordloader.DefaultInputHandler run
> INFO: queued 0 loader(s)
> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor halt
> INFO: halting
> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor run
> INFO: loaded 0 records ok (0 B in 0.5075154 s, 0 tps, 0 kB/s), with 0 
> error(s)
>  
>  
> In the D:/test  test directory I have pdf and jpg files but showing 0 files  
> only.
>  
>  
>  
> -Original Message-
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael 
> Blakeley
> Sent: Saturday, April 20, 2013 12:36 AM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Record Loader - not able to load 
> binary files (pdf, images)
>  
> If you can provide the full RecordLoader logs we may be able to diagnose the 
> problem.
>  
> One potential problem I see is that your CONNECTION_STRING doesn't seem to 
> have a username or password.
>  
> -- Mike
>  
> On 19 Apr 2013, at 11:36 , Mohanraj Chozhan  
> wrote:
>  
> > Which version of MarkLogic are you using?
> > We are using ML6.
> > 
> > Which version of RecordLoader?
> > 
> > recordloader.jar - We can't find the version xpp3-1.1.3_8.jar
> > 
> > What's the exact command you're issuing to invoke the JAR?
> > 
> > We are using the below code to execute the recordloader
> > 
> > String[] args = { "resources/ recordloader.properties " };
> >   try {
> >  RecordLoader.main(args);
> >   } catch (Exception e) {
> >  throw new MarocMLDBException("Uploading bulk files 
> > unseccessful", e);
> >   }
> > recordloader.properties
> > 
> > CONNECTION_STRING=xcc://localhost:8100/test
> > INPUT_PATH=D:/test
> > OUTPUT_COLLECTIONS=wikipedia
> > DOCMENT_TYPE=binary
> > URI_PREFIX=/FR/
> > 
> > What's the error message you're getting?
> > XML files are getting load into ML repository.
> > 
> > Can you provide the MLCP Sample working , We tried and unable to use it.
> > 
> > That's reason we are using chosen recordloader.
> > 
> > It will more helpful if we get the sample of MLCP to use.
> > 
> > Thanks in advance
> > 
> > Mohanraj
> >
> > From: general-boun...@developer.marklogic.com
> > [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin 
> > Makeig
> > Sent: Friday, April 19, 2013 11:49 PM
> > To: MarkLogic Developer Discussion
> > Subject: Re: [MarkLogic Dev General] Record Loader - not able to 
> > load binary files (pdf, images)
> > 
> > Which version of MarkLogic are you using? Which version of RecordLoader? 
> > What's the exact command you're issuing to invoke the JAR? What's the error 
> > message you're getting? If you're using MarkLogic 6, you might also take a 
> > look at mlcp .
> > 
> > Justin
> > 
> > Justin Makeig
> > Director, Product Management
> > MarkLogic Corporation
> > justin.mak...@marklogic.com
> > www.marklogic.com
> >
> >
> >
> > 
> > On Apr 19, 2013, at 11:11 AM, Mohanraj Chozhan 
> > 
> >  wrote:
> >
> >
> > Hi,
> > 
> > I am using the ML record Loader. But unable to load the binary files pdf, 
> > images into ML repository.
> > 
> > In the record loader properties file we added
> > 
> > DOCUMENT_TYPE=binary
> > 
> > But still facing the iss

Re: [MarkLogic Dev General] Record Loader - not able to load binary files (pdf, images)

2013-04-19 Thread Michael Blakeley
I asked for *full* logs: you've left out much of the interesting setup and 
configuration.

However there is just enough here to see the problem: INPUT_PATTERN isn't set, 
so it's using the default value, which only matching *.xml filenames. From 
http://marklogic.github.io/recordloader/

Propertydefault value   notes
INPUT_PATTERN   ^.+\\.[Xx][Mm][Ll]$ Matching pattern (regex) for files 
found in INPUT_PATH. The default value matches all filenames ending with .xml

RecordLoader isn't using your files because it's only looking for filenames 
that match the regex '^.+\\.[Xx][Mm][Ll]$'. Try something like 
INPUT_PATTERN=.+\\.(PDF|JPG|pdf|jpg)$ instead.

-- Mike

On 19 Apr 2013, at 12:24 , Mohanraj Chozhan  
wrote:

> Recordloader logs
>  
> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.DefaultInputHandler 
> configureInputs
> INFO: adding D:/test/
> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.LoaderFactory 
> INFO: Loader is com.marklogic.recordloader.FileLoader
> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.DefaultInputHandler run
> INFO: populating queue
> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.DefaultInputHandler run
> INFO: queued 0 loader(s)
> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor halt
> INFO: halting
> Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor run
> INFO: loaded 0 records ok (0 B in 0.5075154 s, 0 tps, 0 kB/s), with 0 error(s)
>  
>  
> In the D:/test  test directory I have pdf and jpg files but showing 0 files  
> only.
>  
>  
>  
> -Original Message-
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael Blakeley
> Sent: Saturday, April 20, 2013 12:36 AM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Record Loader - not able to load binary 
> files (pdf, images)
>  
> If you can provide the full RecordLoader logs we may be able to diagnose the 
> problem.
>  
> One potential problem I see is that your CONNECTION_STRING doesn't seem to 
> have a username or password.
>  
> -- Mike
>  
> On 19 Apr 2013, at 11:36 , Mohanraj Chozhan  
> wrote:
>  
> > Which version of MarkLogic are you using?
> > We are using ML6.
> > 
> > Which version of RecordLoader?
> > 
> > recordloader.jar – We can’t find the version xpp3-1.1.3_8.jar
> > 
> > What’s the exact command you’re issuing to invoke the JAR?
> > 
> > We are using the below code to execute the recordloader
> > 
> > String[] args = { "resources/ recordloader.properties " };
> >   try {
> >  RecordLoader.main(args);
> >   } catch (Exception e) {
> >  throw new MarocMLDBException("Uploading bulk files 
> > unseccessful", e);
> >   }
> > recordloader.properties
> > 
> > CONNECTION_STRING=xcc://localhost:8100/test
> > INPUT_PATH=D:/test
> > OUTPUT_COLLECTIONS=wikipedia
> > DOCMENT_TYPE=binary
> > URI_PREFIX=/FR/
> > 
> > What’s the error message you’re getting?
> > XML files are getting load into ML repository.
> > 
> > Can you provide the MLCP Sample working , We tried and unable to use it.
> > 
> > That’s reason we are using chosen recordloader.
> > 
> > It will more helpful if we get the sample of MLCP to use.
> > 
> > Thanks in advance
> > 
> > Mohanraj
> >
> > From: general-boun...@developer.marklogic.com
> > [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin
> > Makeig
> > Sent: Friday, April 19, 2013 11:49 PM
> > To: MarkLogic Developer Discussion
> > Subject: Re: [MarkLogic Dev General] Record Loader - not able to load
> > binary files (pdf, images)
> > 
> > Which version of MarkLogic are you using? Which version of RecordLoader? 
> > What’s the exact command you’re issuing to invoke the JAR? What’s the error 
> > message you’re getting? If you’re using MarkLogic 6, you might also take a 
> > look at mlcp .
> > 
> > Justin
> > 
> > Justin Makeig
> > Director, Product Management
> > MarkLogic Corporation
> > justin.mak...@marklogic.com
> > www.marklogic.com
> >
> >
> >
> > 
> > On Apr 19, 2013, at 11:11 AM, Mohanraj Chozhan
> > 
> >  wrote:
> >
> >
> > Hi,
> > 
> > I am using the ML record Loader. But unable to load the binary files pdf, 
> > images into ML repository.
> > 
> > In the record loader properties file we added
> > 
> > DOCUMENT_TYPE=binary
> > 
> > But still facing the issue to load it.
> > 
> > Can someone help me out on this.
> > 
> > Regards,
> > Mohanraj
> >  CAUTION - Disclaimer * This e-mail
> > contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for
> > the use of the addressee(s). If you are not the intended recipient,
> > please notify the sender by e-mail and delete the original message.
> > Further, you are not to copy, disclose, or distribute this e-mail or
> > its contents to any other person and any such actions are unlawful.
>

Re: [MarkLogic Dev General] Record Loader - not able to load binary files (pdf, images)

2013-04-19 Thread Mohanraj Chozhan
Recordloader logs



Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.DefaultInputHandler 
configureInputs

INFO: adding D:/test/

Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.LoaderFactory 

INFO: Loader is com.marklogic.recordloader.FileLoader

Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.DefaultInputHandler run

INFO: populating queue

Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.DefaultInputHandler run

INFO: queued 0 loader(s)

Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor halt

INFO: halting

Apr 20, 2013 12:51:06 AM com.marklogic.recordloader.Monitor run

INFO: loaded 0 records ok (0 B in 0.5075154 s, 0 tps, 0 kB/s), with 0 error(s)





In the D:/test  test directory I have pdf and jpg files but showing 0 files  
only.







-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael Blakeley
Sent: Saturday, April 20, 2013 12:36 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Record Loader - not able to load binary 
files (pdf, images)



If you can provide the full RecordLoader logs we may be able to diagnose the 
problem.



One potential problem I see is that your CONNECTION_STRING doesn't seem to have 
a username or password.



-- Mike



On 19 Apr 2013, at 11:36 , Mohanraj Chozhan 
mailto:mohanraj_choz...@infosys.com>> wrote:



> Which version of MarkLogic are you using?

> We are using ML6.

>

> Which version of RecordLoader?

>

> recordloader.jar - We can't find the version xpp3-1.1.3_8.jar

>

> What's the exact command you're issuing to invoke the JAR?

>

> We are using the below code to execute the recordloader

>

> String[] args = { "resources/ recordloader.properties " };

>   try {

>  RecordLoader.main(args);

>   } catch (Exception e) {

>  throw new MarocMLDBException("Uploading bulk files 
> unseccessful", e);

>   }

> recordloader.properties

>

> CONNECTION_STRING=xcc://localhost:8100/test

> INPUT_PATH=D:/test

> OUTPUT_COLLECTIONS=wikipedia

> DOCMENT_TYPE=binary

> URI_PREFIX=/FR/

>

> What's the error message you're getting?

> XML files are getting load into ML repository.

>

> Can you provide the MLCP Sample working , We tried and unable to use it.

>

> That's reason we are using chosen recordloader.

>

> It will more helpful if we get the sample of MLCP to use.

>

> Thanks in advance

>

> Mohanraj

>

> From: 
> general-boun...@developer.marklogic.com

> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin

> Makeig

> Sent: Friday, April 19, 2013 11:49 PM

> To: MarkLogic Developer Discussion

> Subject: Re: [MarkLogic Dev General] Record Loader - not able to load

> binary files (pdf, images)

>

> Which version of MarkLogic are you using? Which version of RecordLoader? 
> What's the exact command you're issuing to invoke the JAR? What's the error 
> message you're getting? If you're using MarkLogic 6, you might also take a 
> look at mlcp .

>

> Justin

>

> Justin Makeig

> Director, Product Management

> MarkLogic Corporation

> justin.mak...@marklogic.com

> www.marklogic.com

>

>

>

>

> On Apr 19, 2013, at 11:11 AM, Mohanraj Chozhan

> mailto:mohanraj_choz...@infosys.com>>

>  wrote:

>

>

> Hi,

>

> I am using the ML record Loader. But unable to load the binary files pdf, 
> images into ML repository.

>

> In the record loader properties file we added

>

> DOCUMENT_TYPE=binary

>

> But still facing the issue to load it.

>

> Can someone help me out on this.

>

> Regards,

> Mohanraj

>  CAUTION - Disclaimer * This e-mail

> contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for

> the use of the addressee(s). If you are not the intended recipient,

> please notify the sender by e-mail and delete the original message.

> Further, you are not to copy, disclose, or distribute this e-mail or

> its contents to any other person and any such actions are unlawful.

> This e-mail may contain viruses. Infosys has taken every reasonable

> precaution to minimize this risk, but is not liable for any damage you

> may sustain as a result of any virus in this e-mail. You should carry

> out your own virus checks before opening the e-mail or attachment.

> Infosys reserves the right to monitor and review the content of all

> messages sent to or from this e-mail address. Messages sent to or from this 
> e-mail address may be stored on the Infosys e-mail system.

> ***INFOSYS End of Disclaimer INFOSYS***

> ___

> General mailing list

> General@developer.marklogic.com

> http://developer.marklogic.com/mailman/li

Re: [MarkLogic Dev General] Record Loader - not able to load binary files (pdf, images)

2013-04-19 Thread Michael Blakeley
If you can provide the full RecordLoader logs we may be able to diagnose the 
problem.

One potential problem I see is that your CONNECTION_STRING doesn't seem to have 
a username or password.

-- Mike

On 19 Apr 2013, at 11:36 , Mohanraj Chozhan  
wrote:

> Which version of MarkLogic are you using?
> We are using ML6.
>  
> Which version of RecordLoader?
>  
> recordloader.jar – We can’t find the version
> xpp3-1.1.3_8.jar
>  
> What’s the exact command you’re issuing to invoke the JAR?
>  
> We are using the below code to execute the recordloader
>  
> String[] args = { "resources/ recordloader.properties " };
>   try {
>  RecordLoader.main(args);
>   } catch (Exception e) {
>  throw new MarocMLDBException("Uploading bulk files 
> unseccessful", e);
>   }
> recordloader.properties
>  
> CONNECTION_STRING=xcc://localhost:8100/test
> INPUT_PATH=D:/test
> OUTPUT_COLLECTIONS=wikipedia
> DOCMENT_TYPE=binary
> URI_PREFIX=/FR/
>  
> What’s the error message you’re getting?
> XML files are getting load into ML repository.
>  
> Can you provide the MLCP Sample working , We tried and unable to use it.
>  
> That’s reason we are using chosen recordloader.
>  
> It will more helpful if we get the sample of MLCP to use.
>  
> Thanks in advance
>  
> Mohanraj
> 
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin Makeig
> Sent: Friday, April 19, 2013 11:49 PM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Record Loader - not able to load binary 
> files (pdf, images)
>  
> Which version of MarkLogic are you using? Which version of RecordLoader? 
> What’s the exact command you’re issuing to invoke the JAR? What’s the error 
> message you’re getting? If you’re using MarkLogic 6, you might also take a 
> look at mlcp .
>  
> Justin
>  
> Justin Makeig
> Director, Product Management
> MarkLogic Corporation
> justin.mak...@marklogic.com
> www.marklogic.com
> 
> 
> 
>  
> On Apr 19, 2013, at 11:11 AM, Mohanraj Chozhan 
>  wrote:
> 
> 
> Hi,
>  
> I am using the ML record Loader. But unable to load the binary files pdf, 
> images into ML repository.
>  
> In the record loader properties file we added
>  
> DOCUMENT_TYPE=binary
>  
> But still facing the issue to load it.
>  
> Can someone help me out on this.
>  
> Regards,
> Mohanraj
>  CAUTION - Disclaimer *
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
> for the use of the addressee(s). If you are not the intended recipient, 
> please 
> notify the sender by e-mail and delete the original message. Further, you are 
> not 
> to copy, disclose, or distribute this e-mail or its contents to any other 
> person and 
> any such actions are unlawful. This e-mail may contain viruses. Infosys has 
> taken 
> every reasonable precaution to minimize this risk, but is not liable for any 
> damage 
> you may sustain as a result of any virus in this e-mail. You should carry out 
> your 
> own virus checks before opening the e-mail or attachment. Infosys reserves 
> the 
> right to monitor and review the content of all messages sent to or from this 
> e-mail 
> address. Messages sent to or from this e-mail address may be stored on the 
> Infosys e-mail system.
> ***INFOSYS End of Disclaimer INFOSYS***
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>  
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Record Loader - not able to load binary files (pdf, images)

2013-04-19 Thread Mohanraj Chozhan
Which version of MarkLogic are you using?
We are using ML6.

Which version of RecordLoader?

recordloader.jar - We can't find the version
xpp3-1.1.3_8.jar

What's the exact command you're issuing to invoke the JAR?

We are using the below code to execute the recordloader

String[] args = { "resources/ recordloader.properties " };
  try {
 RecordLoader.main(args);
  } catch (Exception e) {
 throw new MarocMLDBException("Uploading bulk files 
unseccessful", e);
  }
recordloader.properties

CONNECTION_STRING=xcc://localhost:8100/test
INPUT_PATH=D:/test
OUTPUT_COLLECTIONS=wikipedia
DOCMENT_TYPE=binary
URI_PREFIX=/FR/

What's the error message you're getting?
XML files are getting load into ML repository.

Can you provide the MLCP Sample working , We tried and unable to use it.

That's reason we are using chosen recordloader.

It will more helpful if we get the sample of MLCP to use.

Thanks in advance

Mohanraj

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin Makeig
Sent: Friday, April 19, 2013 11:49 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Record Loader - not able to load binary 
files (pdf, images)

Which version of MarkLogic are you using? Which version of RecordLoader? What's 
the exact command you're issuing to invoke the JAR? What's the error message 
you're getting? If you're using MarkLogic 6, you might also take a look at mlcp 
.

Justin

Justin Makeig
Director, Product Management
MarkLogic Corporation
justin.mak...@marklogic.com
www.marklogic.com




On Apr 19, 2013, at 11:11 AM, Mohanraj Chozhan 
mailto:mohanraj_choz...@infosys.com>>
 wrote:


Hi,

I am using the ML record Loader. But unable to load the binary files pdf, 
images into ML repository.

In the record loader properties file we added

DOCUMENT_TYPE=binary

But still facing the issue to load it.

Can someone help me out on this.

Regards,
Mohanraj

 CAUTION - Disclaimer *

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely

for the use of the addressee(s). If you are not the intended recipient, please

notify the sender by e-mail and delete the original message. Further, you are 
not

to copy, disclose, or distribute this e-mail or its contents to any other 
person and

any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken

every reasonable precaution to minimize this risk, but is not liable for any 
damage

you may sustain as a result of any virus in this e-mail. You should carry out 
your

own virus checks before opening the e-mail or attachment. Infosys reserves the

right to monitor and review the content of all messages sent to or from this 
e-mail

address. Messages sent to or from this e-mail address may be stored on the

Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Record Loader - not able to load binary files (pdf, images)

2013-04-19 Thread Justin Makeig
Which version of MarkLogic are you using? Which version of RecordLoader? What’s 
the exact command you’re issuing to invoke the JAR? What’s the error message 
you’re getting? If you’re using MarkLogic 6, you might also take a look at mlcp 
.

Justin

Justin Makeig
Director, Product Management
MarkLogic Corporation
justin.mak...@marklogic.com
www.marklogic.com



On Apr 19, 2013, at 11:11 AM, Mohanraj Chozhan 
mailto:mohanraj_choz...@infosys.com>>
 wrote:

Hi,

I am using the ML record Loader. But unable to load the binary files pdf, 
images into ML repository.

In the record loader properties file we added

DOCUMENT_TYPE=binary

But still facing the issue to load it.

Can someone help me out on this.

Regards,
Mohanraj

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Record Loader - not able to load binary files (pdf, images)

2013-04-19 Thread Mohanraj Chozhan
Hi,

I am using the ML record Loader. But unable to load the binary files pdf, 
images into ML repository.

In the record loader properties file we added

DOCUMENT_TYPE=binary

But still facing the issue to load it.

Can someone help me out on this.

Regards,
Mohanraj

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Mlcp Can it load directly from mq ?

2013-04-19 Thread Justin Makeig
There is no public interface today in mlcp to load data from an InputStream, 
for example. We’re looking at how we can make the input and output interfaces 
more extensible in a future release. While not a great answer, in the meantime, 
mlcp is open source (Apache 2.0). I’ve seen several instances of users 
modifying the code slightly to affect a specific behavior. If you do fork it, 
I’d be very interested in understanding your changes to 1) improve the 
out-of-the-box functionality and 2) make sure we have the right extensibility 
hooks. 

As always, feedback is much appreciated.

Justin

On Apr 19, 2013, at 12:32 AM, MarkLogic User 
 wrote:

> 
> Hi,
> 
> We are considering using MLCP to load hundreds of millions of xml docs into 
> the MarkLogic database.
> Now we get data from an MQ. So in order to ingest this data into MarkLogic, 
> we first extract and store the files into file system and then use mlcp to 
> load into MarkLogic database.
> But storing in file system is an Extra Overhead which we want to avoid. So is 
> there any way that we can use mlcp to load data straightway from an MQ to the 
> MarkLogic database.
> 
> Thanks..
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Try Catch Conflicting updates

2013-04-19 Thread Damon Feldman
Pradeep,

The commit of all updates from a transaction occurs after the XQuery is done 
running, including the try/catch. So setting the properties did not trigger the 
conflict (or at least it is not detected) inside the try/catch. That code 
completes, then when the system actually processes the transaction commit after 
all code is done, it sees the same fragment being updated in inconsistent ways 
and raises the error.

So you need to look at your program logic to avoid the conflict. Can you 
describe what happens and what you are trying to accomplish at a high level?

Yours,
Damon

--
Damon Feldman
Sr. Principal Consultant, MarkLogic




From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Pradeep Maddireddy
Sent: Friday, April 19, 2013 10:15 AM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] Try Catch Conflicting updates

Hi..!

Try catch doesn't seem to work with conflicting updates problem. I am trying to 
update the same document property in the same transaction so I used try catch 
so that the second update can be ignored but doesn't seem to work. Marklogic is 
still throwing an hard error even when I am using a try catch in the below case.
Is there anything wrong in the below block of code.

My actual situation isn't as straight forward so I cannot use alternate 
approaches.

try {
(
xdmp:document-set-property("/root/abc.xml",5),
xdmp:document-set-property("/root/abc.xml",6)
)
}
catch($err)
{
  "error"
}

Thanks
Pradeep Maddireddy
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Try Catch Conflicting updates

2013-04-19 Thread Pradeep Maddireddy
Hi..!

Try catch doesn't seem to work with conflicting updates problem. I am
trying to update the same document property in the same transaction so I
used try catch so that the second update can be ignored but doesn't seem to
work. Marklogic is still throwing an hard error even when I am using a try
catch in the below case.
Is there anything wrong in the below block of code.

My actual situation isn't as straight forward so I cannot use alternate
approaches.

try {
(
xdmp:document-set-property("/root/abc.xml",5),
xdmp:document-set-property("/root/abc.xml",6)
)
}
catch($err)
{
  "error"
}

Thanks
Pradeep Maddireddy
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] command line interface

2013-04-19 Thread David Lee
Simpliest way is to make a script file like this

 mleval.xsh
import module ml=marklogic
MLCONNECT="xcc://your connect string"
ml:query "$1"
-

Then from a command line you can run

xmlsh mleval "1+1"


Also note that xmlsh itself is a "command line" so you can run it interactively 
and type the commands one by one.


If you would like more help contact me offline and I can setup a gotomeeting or 
webex to step  you through.

-David
( d...@marklogic.com)



-
David Lee
Lead Engineer
MarkLogic Corporation
d...@marklogic.com
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, April 19, 2013 9:51 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] command line interface

How would you call it to evaluate a query that you pass from command-line? 
xmlsh -e "1+1"?

;-)

Van: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 Namens David Lee
Verzonden: vrijdag 19 april 2013 15:47
Aan: MarkLogic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] command line interface

xmlsh works great from the command line


-
David Lee
Lead Engineer
MarkLogic Corporation
d...@marklogic.com
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com

From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Geert Josten
Sent: Friday, April 19, 2013 9:45 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] command line interface

Hi Gary,

I am not aware of a tool that allows directly typing a query on the 
command-line itself, but http://developer.marklogic.com/code mentions xmlsh and 
cqsh. Perhaps one of those could do that? Or perhaps you could write a script 
for those that take a command-line param and pass it to MarkLogic for 
evaluation..

Kind regards,
Geert

Van: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 Namens Gary Larsen
Verzonden: vrijdag 19 april 2013 15:44
Aan: General MarkLogic Developer Discussion
Onderwerp: [MarkLogic Dev General] command line interface

Hi,

Is there a command line interface for Windows to execute a query?   XQRunner 
looked like a possibility but could not locate any examples on how this works.

Thanks,
Gary

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] command line interface

2013-04-19 Thread Geert Josten
How would you call it to evaluate a query that you pass from command-line?
xmlsh –e “1+1”?



;-)



*Van:* general-boun...@developer.marklogic.com [mailto:
general-boun...@developer.marklogic.com] *Namens *David Lee
*Verzonden:* vrijdag 19 april 2013 15:47
*Aan:* MarkLogic Developer Discussion
*Onderwerp:* Re: [MarkLogic Dev General] command line interface



xmlsh works great from the command line





-

David Lee
Lead Engineer
MarkLogic Corporation
d...@marklogic.com
Phone: +1 812-482-5224

Cell:  +1 812-630-7622
www.marklogic.com



*From:* general-boun...@developer.marklogic.com [mailto:
general-boun...@developer.marklogic.com] *On Behalf Of *Geert Josten
*Sent:* Friday, April 19, 2013 9:45 AM
*To:* MarkLogic Developer Discussion
*Subject:* Re: [MarkLogic Dev General] command line interface



Hi Gary,



I am not aware of a tool that allows directly typing a query on the
command-line itself, but http://developer.marklogic.com/code mentions xmlsh
and cqsh. Perhaps one of those could do that? Or perhaps you could write a
script for those that take a command-line param and pass it to MarkLogic
for evaluation..



Kind regards,

Geert



*Van:* general-boun...@developer.marklogic.com [mailto:
general-boun...@developer.marklogic.com] *Namens *Gary Larsen
*Verzonden:* vrijdag 19 april 2013 15:44
*Aan:* General MarkLogic Developer Discussion
*Onderwerp:* [MarkLogic Dev General] command line interface



Hi,



Is there a command line interface for Windows to execute a query?
XQRunner looked like a possibility but could not locate any examples on how
this works.



Thanks,

Gary
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] command line interface

2013-04-19 Thread David Lee
xmlsh works great from the command line


-
David Lee
Lead Engineer
MarkLogic Corporation
d...@marklogic.com
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, April 19, 2013 9:45 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] command line interface

Hi Gary,

I am not aware of a tool that allows directly typing a query on the 
command-line itself, but http://developer.marklogic.com/code mentions xmlsh and 
cqsh. Perhaps one of those could do that? Or perhaps you could write a script 
for those that take a command-line param and pass it to MarkLogic for 
evaluation..

Kind regards,
Geert

Van: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 Namens Gary Larsen
Verzonden: vrijdag 19 april 2013 15:44
Aan: General MarkLogic Developer Discussion
Onderwerp: [MarkLogic Dev General] command line interface

Hi,

Is there a command line interface for Windows to execute a query?   XQRunner 
looked like a possibility but could not locate any examples on how this works.

Thanks,
Gary

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] command line interface

2013-04-19 Thread David Lee
xmlsh works great on windows (that is where I do 90% of my ML development)
With the marklogic module you can execute ad-hoc as well as stored queries.
It is fully scriptable and can be called by any program that call call either 
java directly
or via a process command-line

http://www.xmlsh.org/HomePage
http://www.xmlsh.org/ModuleMarkLogic
-
David Lee
Lead Engineer
MarkLogic Corporation
d...@marklogic.com
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gary Larsen
Sent: Friday, April 19, 2013 9:44 AM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] command line interface

Hi,

Is there a command line interface for Windows to execute a query?   XQRunner 
looked like a possibility but could not locate any examples on how this works.

Thanks,
Gary

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] command line interface

2013-04-19 Thread Geert Josten
Hi Gary,



I am not aware of a tool that allows directly typing a query on the
command-line itself, but http://developer.marklogic.com/code mentions xmlsh
and cqsh. Perhaps one of those could do that? Or perhaps you could write a
script for those that take a command-line param and pass it to MarkLogic
for evaluation..



Kind regards,

Geert



*Van:* general-boun...@developer.marklogic.com [mailto:
general-boun...@developer.marklogic.com] *Namens *Gary Larsen
*Verzonden:* vrijdag 19 april 2013 15:44
*Aan:* General MarkLogic Developer Discussion
*Onderwerp:* [MarkLogic Dev General] command line interface



Hi,



Is there a command line interface for Windows to execute a query?
XQRunner looked like a possibility but could not locate any examples on how
this works.



Thanks,

Gary
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] command line interface

2013-04-19 Thread Gary Larsen
Hi,

 

Is there a command line interface for Windows to execute a query?   XQRunner
looked like a possibility but could not locate any examples on how this
works.

 

Thanks,

Gary 

 

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Mlcp Can it load directly from mq ?

2013-04-19 Thread Geert Josten
Hi MarkLogic User,

If it is possible to retrieve a list of docid's and retrieve the
individual documents from XQuery, then you could adapt one of the example
collectors, and use Information Studio to load the files..

Kind regards,
Geert

> -Oorspronkelijk bericht-
> Van: general-boun...@developer.marklogic.com [mailto:general-
> boun...@developer.marklogic.com] Namens MarkLogic User
> Verzonden: vrijdag 19 april 2013 9:32
> Aan: general@developer.marklogic.com
> Onderwerp: [MarkLogic Dev General] Mlcp Can it load directly from mq ?
>
>
> Hi,
>
> We are considering using MLCP to load hundreds of millions of xml docs
> into the MarkLogic database.
> Now we get data from an MQ. So in order to ingest this data into
> MarkLogic, we first extract and store the files into file system and
then use
> mlcp to load into MarkLogic database.
> But storing in file system is an Extra Overhead which we want to avoid.
So is
> there any way that we can use mlcp to load data straightway from an MQ
> to the MarkLogic database.
>
> Thanks..
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Mlcp Can it load directly from mq ?

2013-04-19 Thread MarkLogic User

Hi,

We are considering using MLCP to load hundreds of millions of xml docs into the 
MarkLogic database.
Now we get data from an MQ. So in order to ingest this data into MarkLogic, we 
first extract and store the files into file system and then use mlcp to load 
into MarkLogic database.
But storing in file system is an Extra Overhead which we want to avoid. So is 
there any way that we can use mlcp to load data straightway from an MQ to the 
MarkLogic database.

Thanks..
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general