Re: [MarkLogic Dev General] ML Content Pump command for Windows

2015-07-02 Thread David Ennis
Further to what Jakob said:

Just for completeness:
If, in fact, you really wanted the copy or export commands for *other*
use-cases in the future, some of the parameters are different (input_host
and output_host for copy as example).

The different parameters depending on which MLCP command you run can be
found here:
https://docs.marklogic.com/guide/ingestion/content-pump#id_55140



Kind Regards,
David Ennis


David Ennis
*Content Engineer*

[image: HintTech]  
Mastering the value of content
creative | technology | content

Delftechpark 37i
2628 XJ Delft
The Netherlands
T: +31 88 268 25 00
M: +31 63 091 72 80

[image: http://www.hinttech.com] 
  


On 2 July 2015 at 12:37, Jakob Fix  wrote:

> Hi Sachin,
>
> I think you should use the import command (rather than copy, which is
> intended for copying between ML databases).
>
> So, your command should read:
>
> mlcp.bat import -host localhost -port 4373 -username sachin -password
> sachin -input_file_path C:\Users\SHARMAS7\Desktop\documents\xquery
> -transform_module /example/mlcp-transform.xqy -transform_namespace "
> http://marklogic.com/example"; -transform_param "my-value"
>
> (I removed the -mode local because I think that's the default when
> importing).
>
>
>
> cheers,
> Jakob.
>
> On Thu, Jul 2, 2015 at 12:33 PM, Sachin Sharma 
> wrote:
>
>> Hello I am trying to apply ml content pump ingestion(using function to
>> transform xml documents) on my local ml (windows) using mlcp
>> tutorials.Following is linux command for ingestion (From mlcp tutorials)
>>
>> mlcp.sh copy -mode local -host localhost -port 4373 -username sachin
>> -password sachin -input_file_path /users/sachin/ -transform_module
>> /example/mlcp-transform.xqy -transform_namespace "
>> http://marklogic.com/example"; -transform_param "my-value"
>>
>> Following is equivalent for above linux commands on windows
>>
>> mlcp.bat copy -mode local -host localhost -port 4373 -username sachin
>> -password sachin -input_file_path
>> C:\Users\SHARMAS7\Desktop\documents\xquery -transform_module
>> /example/mlcp-transform.xqy -transform_namespace "
>> http://marklogic.com/example"; -transform_param "my-value"
>>
>> When above windows commands is being executed it is giveing error "Error
>> Parsing  Option Invalid option -host"
>>
>> So can someone into windows commands and correct  it.Any help is
>> appreciated.
>>
>> Thanks
>> Sachin Sharma
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ML Content Pump command for Windows

2015-07-02 Thread Jakob Fix
Hi Sachin,

I think you should use the import command (rather than copy, which is
intended for copying between ML databases).

So, your command should read:

mlcp.bat import -host localhost -port 4373 -username sachin -password
sachin -input_file_path C:\Users\SHARMAS7\Desktop\documents\xquery
-transform_module /example/mlcp-transform.xqy -transform_namespace "
http://marklogic.com/example"; -transform_param "my-value"

(I removed the -mode local because I think that's the default when
importing).



cheers,
Jakob.

On Thu, Jul 2, 2015 at 12:33 PM, Sachin Sharma 
wrote:

> Hello I am trying to apply ml content pump ingestion(using function to
> transform xml documents) on my local ml (windows) using mlcp
> tutorials.Following is linux command for ingestion (From mlcp tutorials)
>
> mlcp.sh copy -mode local -host localhost -port 4373 -username sachin
> -password sachin -input_file_path /users/sachin/ -transform_module
> /example/mlcp-transform.xqy -transform_namespace "
> http://marklogic.com/example"; -transform_param "my-value"
>
> Following is equivalent for above linux commands on windows
>
> mlcp.bat copy -mode local -host localhost -port 4373 -username sachin
> -password sachin -input_file_path
> C:\Users\SHARMAS7\Desktop\documents\xquery -transform_module
> /example/mlcp-transform.xqy -transform_namespace "
> http://marklogic.com/example"; -transform_param "my-value"
>
> When above windows commands is being executed it is giveing error "Error
> Parsing  Option Invalid option -host"
>
> So can someone into windows commands and correct  it.Any help is
> appreciated.
>
> Thanks
> Sachin Sharma
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] ML Content Pump command for Windows

2015-07-02 Thread Sachin Sharma
Hello I am trying to apply ml content pump ingestion(using function to
transform xml documents) on my local ml (windows) using mlcp
tutorials.Following is linux command for ingestion (From mlcp tutorials)

mlcp.sh copy -mode local -host localhost -port 4373 -username sachin
-password sachin -input_file_path /users/sachin/ -transform_module
/example/mlcp-transform.xqy -transform_namespace "
http://marklogic.com/example"; -transform_param "my-value"

Following is equivalent for above linux commands on windows

mlcp.bat copy -mode local -host localhost -port 4373 -username sachin
-password sachin -input_file_path
C:\Users\SHARMAS7\Desktop\documents\xquery -transform_module
/example/mlcp-transform.xqy -transform_namespace "
http://marklogic.com/example"; -transform_param "my-value"

When above windows commands is being executed it is giveing error "Error
Parsing  Option Invalid option -host"

So can someone into windows commands and correct  it.Any help is
appreciated.

Thanks
Sachin Sharma
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general