Re: [MarkLogic Dev General] ML Cluster Database Backup Directory

2015-10-08 Thread Harry Bakken
It will save it to the D: drive of the particular host it runs on. Probably
better to have a shared drive that all the hosts have access/permission to.

On Thu, Oct 8, 2015 at 9:04 PM, Danny Sinang  wrote:

> In a 3-node ML cluster, if I specify D:\ml-backups as the Backup Directory
> for my Documents database, which node's drive D: will the backup get saved
> on ?
>
> Will it be saved to a different node next time the scheduled backup runs ?
>
>
>
> ___
> 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 Cluster Database Backup Directory

2015-10-08 Thread Danny Sinang
In a 3-node ML cluster, if I specify D:\ml-backups as the Backup Directory
for my Documents database, which node's drive D: will the backup get saved
on ?

Will it be saved to a different node next time the scheduled backup runs ?
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Danny Sokolsky
You can always create a resourse extension in MarkLogic 7 to fill in the gaps 
or to do custom things:

http://docs.marklogic.com/7.0/guide/rest-dev/extensions

-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 3:40 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Upgrade is not an option here, so I guess we can't fully automate 
Administrative tasks in ML 7.


Ernest Gulik

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 5:35 PM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

There are a lot more REST calls in MarkLogic 8.  A good excuse to upgrade :)

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 3:33 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

This post is for ML8 not ML7.
If there are new calls in guide for ML8 then will they work in ML7 and 
documentation is simply not updated?
Should just ignore it and focus on documentation for ML8 guide even though I'm 
working on ML 7?

Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 5:27 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Here is how to backup using REST:

http://docs.marklogic.com/REST/POST/manage/v2/databases/%5Bid-or-name%5D#BackupDB

I'm not sure about renaming a forest.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 3:01 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

I'm going through documentation and it doesn't seem like it's possible to 
simply rename forest.
There are tons of options (clear | merge | restart | attach | detach | retire | 
employ | delete) but no simple rename like I have this xquery:


xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin";
  at "/MarkLogic/admin.xqy";

let $config := admin:forest-rename(admin:get-configuration(), 
98869316759288, "forest-name")
return admin:save-configuration($config)

Is that true that you can't rename forest using REST API?
It doesn't seem like that there's a corresponding REST API call to xquery 
function: forest-rename or maybe I'm missing something?
I thought that maybe this will just work and based on "PUT 
/manage/v2/forests/{id|name}/properties" I tried:

$ cat forest-name.xml
http://marklogic.com/manage";>
 blaa


$ curl --anyauth --user user:password -X PUT -d @./forest-name.xml -i -H 
"Content-type: application/xml" 
http://127.0.0.1:8002/manage/v2/forests/forest-name/properties
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="public", qop="auth", 
nonce="16f0b33722bdc4ec775e5afca46da21d", opaque="16f244e1594b02d7"
Content-type: application/xml
Server: MarkLogic
Content-Length: 173
Connection: Keep-Alive
Keep-Alive: timeout=5

HTTP/1.1 400 Bad Request
Content-type: application/xml
Server: MarkLogic
Content-Length: 311
Connection: Keep-Alive
Keep-Alive: timeout=5

http://marklogic.com/manage";>
  400
  Bad Request
  MANAGE-INVALIDPAYLOAD
  MANAGE-INVALIDPAYLOAD: (err:FOER) Payload has errors in 
structure, content-type or values. Cannot validate payload.


User/password is correct because this call works fine:

$ curl -s --anyauth --user user:password -X GET -H "Accept: application/xml" 
http://localhost:8002/manage/v2/forests/forest-name

I tried all 8** ports and localhost as well. I'm stumped.
It doesn't seem like there are API calls for issuing backups of databases. 
(Creating, deleting but not simply backup).
Is it possible to use our xqueries as input to REST API calls, for example?
    -d @xquery-file.file  http:///manage/xquery


Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, O

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Gulik, Ernest
Upgrade is not an option here, so I guess we can't fully automate 
Administrative tasks in ML 7.


Ernest Gulik

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 5:35 PM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

There are a lot more REST calls in MarkLogic 8.  A good excuse to upgrade :)

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 3:33 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

This post is for ML8 not ML7.
If there are new calls in guide for ML8 then will they work in ML7 and 
documentation is simply not updated?
Should just ignore it and focus on documentation for ML8 guide even though I'm 
working on ML 7?

Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 5:27 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Here is how to backup using REST:

http://docs.marklogic.com/REST/POST/manage/v2/databases/%5Bid-or-name%5D#BackupDB

I'm not sure about renaming a forest.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 3:01 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

I'm going through documentation and it doesn't seem like it's possible to 
simply rename forest.
There are tons of options (clear | merge | restart | attach | detach | retire | 
employ | delete) but no simple rename like I have this xquery:


xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin";
  at "/MarkLogic/admin.xqy";

let $config := admin:forest-rename(admin:get-configuration(), 
98869316759288, "forest-name")
return admin:save-configuration($config)

Is that true that you can't rename forest using REST API?
It doesn't seem like that there's a corresponding REST API call to xquery 
function: forest-rename or maybe I'm missing something?
I thought that maybe this will just work and based on "PUT 
/manage/v2/forests/{id|name}/properties" I tried:

$ cat forest-name.xml
http://marklogic.com/manage";>
 blaa


$ curl --anyauth --user user:password -X PUT -d @./forest-name.xml -i -H 
"Content-type: application/xml" 
http://127.0.0.1:8002/manage/v2/forests/forest-name/properties
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="public", qop="auth", 
nonce="16f0b33722bdc4ec775e5afca46da21d", opaque="16f244e1594b02d7"
Content-type: application/xml
Server: MarkLogic
Content-Length: 173
Connection: Keep-Alive
Keep-Alive: timeout=5

HTTP/1.1 400 Bad Request
Content-type: application/xml
Server: MarkLogic
Content-Length: 311
Connection: Keep-Alive
Keep-Alive: timeout=5

http://marklogic.com/manage";>
  400
  Bad Request
  MANAGE-INVALIDPAYLOAD
  MANAGE-INVALIDPAYLOAD: (err:FOER) Payload has errors in 
structure, content-type or values. Cannot validate payload.


User/password is correct because this call works fine:

$ curl -s --anyauth --user user:password -X GET -H "Accept: application/xml" 
http://localhost:8002/manage/v2/forests/forest-name

I tried all 8** ports and localhost as well. I'm stumped.
It doesn't seem like there are API calls for issuing backups of databases. 
(Creating, deleting but not simply backup).
Is it possible to use our xqueries as input to REST API calls, for example?
    -d @xquery-file.file  http:///manage/xquery


Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 1:14 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Nice,
This seems very promising.
I'll dig into that then.
I have to say that I'm surprised from the speed of responses here, really!
I really appreciate your support. This is awesome!
Thank you!


Ernest Gulik

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

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Danny Sokolsky
There are a lot more REST calls in MarkLogic 8.  A good excuse to upgrade :)

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 3:33 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

This post is for ML8 not ML7.
If there are new calls in guide for ML8 then will they work in ML7 and 
documentation is simply not updated?
Should just ignore it and focus on documentation for ML8 guide even though I'm 
working on ML 7?

Ernest Gulik

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 5:27 PM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Here is how to backup using REST:

http://docs.marklogic.com/REST/POST/manage/v2/databases/%5Bid-or-name%5D#BackupDB

I'm not sure about renaming a forest.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 3:01 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

I'm going through documentation and it doesn't seem like it's possible to 
simply rename forest.
There are tons of options (clear | merge | restart | attach | detach | retire | 
employ | delete) but no simple rename like I have this xquery:


xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin";
  at "/MarkLogic/admin.xqy";

let $config := admin:forest-rename(admin:get-configuration(), 
98869316759288, "forest-name")
return admin:save-configuration($config)

Is that true that you can't rename forest using REST API?
It doesn't seem like that there's a corresponding REST API call to xquery 
function: forest-rename or maybe I'm missing something?
I thought that maybe this will just work and based on "PUT 
/manage/v2/forests/{id|name}/properties" I tried:

$ cat forest-name.xml
http://marklogic.com/manage";>
 blaa


$ curl --anyauth --user user:password -X PUT -d @./forest-name.xml -i -H 
"Content-type: application/xml" 
http://127.0.0.1:8002/manage/v2/forests/forest-name/properties
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="public", qop="auth", 
nonce="16f0b33722bdc4ec775e5afca46da21d", opaque="16f244e1594b02d7"
Content-type: application/xml
Server: MarkLogic
Content-Length: 173
Connection: Keep-Alive
Keep-Alive: timeout=5

HTTP/1.1 400 Bad Request
Content-type: application/xml
Server: MarkLogic
Content-Length: 311
Connection: Keep-Alive
Keep-Alive: timeout=5

http://marklogic.com/manage";>
  400
  Bad Request
  MANAGE-INVALIDPAYLOAD
  MANAGE-INVALIDPAYLOAD: (err:FOER) Payload has errors in 
structure, content-type or values. Cannot validate payload.


User/password is correct because this call works fine:

$ curl -s --anyauth --user user:password -X GET -H "Accept: application/xml" 
http://localhost:8002/manage/v2/forests/forest-name

I tried all 8** ports and localhost as well. I'm stumped.
It doesn't seem like there are API calls for issuing backups of databases. 
(Creating, deleting but not simply backup).
Is it possible to use our xqueries as input to REST API calls, for example?
    -d @xquery-file.file  http:///manage/xquery



Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 1:14 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Nice,
This seems very promising.
I'll dig into that then.
I have to say that I'm surprised from the speed of responses here, really!
I really appreciate your support. This is awesome!
Thank you!


Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 1:01 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

If what you want to do is script admin tasks, I would recommend using the REST 
API:

http://docs.marklogic.com/REST/management

You can then call that from a shell script using curl or something similar, 
including a

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Gulik, Ernest
This post is for ML8 not ML7.
If there are new calls in guide for ML8 then will they work in ML7 and 
documentation is simply not updated?
Should just ignore it and focus on documentation for ML8 guide even though I'm 
working on ML 7?

Ernest Gulik

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 5:27 PM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Here is how to backup using REST:

http://docs.marklogic.com/REST/POST/manage/v2/databases/%5Bid-or-name%5D#BackupDB

I'm not sure about renaming a forest.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 3:01 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

I'm going through documentation and it doesn't seem like it's possible to 
simply rename forest.
There are tons of options (clear | merge | restart | attach | detach | retire | 
employ | delete) but no simple rename like I have this xquery:


xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin";
  at "/MarkLogic/admin.xqy";

let $config := admin:forest-rename(admin:get-configuration(), 
98869316759288, "forest-name")
return admin:save-configuration($config)

Is that true that you can't rename forest using REST API?
It doesn't seem like that there's a corresponding REST API call to xquery 
function: forest-rename or maybe I'm missing something?
I thought that maybe this will just work and based on "PUT 
/manage/v2/forests/{id|name}/properties" I tried:

$ cat forest-name.xml
http://marklogic.com/manage";>
 blaa


$ curl --anyauth --user user:password -X PUT -d @./forest-name.xml -i -H 
"Content-type: application/xml" 
http://127.0.0.1:8002/manage/v2/forests/forest-name/properties
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="public", qop="auth", 
nonce="16f0b33722bdc4ec775e5afca46da21d", opaque="16f244e1594b02d7"
Content-type: application/xml
Server: MarkLogic
Content-Length: 173
Connection: Keep-Alive
Keep-Alive: timeout=5

HTTP/1.1 400 Bad Request
Content-type: application/xml
Server: MarkLogic
Content-Length: 311
Connection: Keep-Alive
Keep-Alive: timeout=5

http://marklogic.com/manage";>
  400
  Bad Request
  MANAGE-INVALIDPAYLOAD
  MANAGE-INVALIDPAYLOAD: (err:FOER) Payload has errors in 
structure, content-type or values. Cannot validate payload.


User/password is correct because this call works fine:

$ curl -s --anyauth --user user:password -X GET -H "Accept: application/xml" 
http://localhost:8002/manage/v2/forests/forest-name

I tried all 8** ports and localhost as well. I'm stumped.
It doesn't seem like there are API calls for issuing backups of databases. 
(Creating, deleting but not simply backup).
Is it possible to use our xqueries as input to REST API calls, for example?
    -d @xquery-file.file  http:///manage/xquery



Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 1:14 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Nice,
This seems very promising.
I'll dig into that then.
I have to say that I'm surprised from the speed of responses here, really!
I really appreciate your support. This is awesome!
Thank you!


Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 1:01 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

If what you want to do is script admin tasks, I would recommend using the REST 
API:

http://docs.marklogic.com/REST/management

You can then call that from a shell script using curl or something similar, 
including all of your favorite scripting languages.  The REST api has all of 
the best practices built in.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 7:23 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Ma

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Danny Sokolsky
Here is how to backup using REST:

http://docs.marklogic.com/REST/POST/manage/v2/databases/%5Bid-or-name%5D#BackupDB

I'm not sure about renaming a forest.

-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 3:01 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

I'm going through documentation and it doesn't seem like it's possible to 
simply rename forest.
There are tons of options (clear | merge | restart | attach | detach | retire | 
employ | delete) but no simple rename like I have this xquery:


xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin";
  at "/MarkLogic/admin.xqy";

let $config := admin:forest-rename(admin:get-configuration(), 
98869316759288, "forest-name")
return admin:save-configuration($config)

Is that true that you can't rename forest using REST API?
It doesn't seem like that there's a corresponding REST API call to xquery 
function: forest-rename or maybe I'm missing something?
I thought that maybe this will just work and based on "PUT 
/manage/v2/forests/{id|name}/properties" I tried:

$ cat forest-name.xml
http://marklogic.com/manage";>
 blaa


$ curl --anyauth --user user:password -X PUT -d @./forest-name.xml -i -H 
"Content-type: application/xml" 
http://127.0.0.1:8002/manage/v2/forests/forest-name/properties
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="public", qop="auth", 
nonce="16f0b33722bdc4ec775e5afca46da21d", opaque="16f244e1594b02d7"
Content-type: application/xml
Server: MarkLogic
Content-Length: 173
Connection: Keep-Alive
Keep-Alive: timeout=5

HTTP/1.1 400 Bad Request
Content-type: application/xml
Server: MarkLogic
Content-Length: 311
Connection: Keep-Alive
Keep-Alive: timeout=5

http://marklogic.com/manage";>
  400
  Bad Request
  MANAGE-INVALIDPAYLOAD
  MANAGE-INVALIDPAYLOAD: (err:FOER) Payload has errors in 
structure, content-type or values. Cannot validate payload.


User/password is correct because this call works fine:

$ curl -s --anyauth --user user:password -X GET -H "Accept: application/xml" 
http://localhost:8002/manage/v2/forests/forest-name

I tried all 8** ports and localhost as well. I'm stumped.
It doesn't seem like there are API calls for issuing backups of databases. 
(Creating, deleting but not simply backup).
Is it possible to use our xqueries as input to REST API calls, for example?
    -d @xquery-file.file  http:///manage/xquery




Ernest Gulik

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 1:14 PM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Nice,
This seems very promising.
I'll dig into that then.
I have to say that I'm surprised from the speed of responses here, really!
I really appreciate your support. This is awesome!
Thank you!


Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 1:01 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

If what you want to do is script admin tasks, I would recommend using the REST 
API:

http://docs.marklogic.com/REST/management

You can then call that from a shell script using curl or something similar, 
including all of your favorite scripting languages.  The REST api has all of 
the best practices built in.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 7:23 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Thank you for all your responses.
Installation is straight from ML ec2 template, so nothing complicated.
I was trying to figure it out how to script db backups (and other maintenance 
tasks) using command line.
Scripted, because I have a little more control/monitoring in that way.
I have few xqueries that are working fine from qconsole but I want to do as 
less manual tasks as possible.

I might just play around curl with POST and authentication and see how that 
goes since cqsh is not maintain anymore.
Is there command line tool for MarkLogic that is maintained and working? :)
What built-in tools I could use to automate backups, user creatio

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Gulik, Ernest
I'm going through documentation and it doesn't seem like it's possible to 
simply rename forest.
There are tons of options (clear | merge | restart | attach | detach | retire | 
employ | delete) but no simple rename like I have this xquery:


xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin";
  at "/MarkLogic/admin.xqy";

let $config := admin:forest-rename(admin:get-configuration(), 
98869316759288, "forest-name")
return admin:save-configuration($config)

Is that true that you can't rename forest using REST API?
It doesn't seem like that there's a corresponding REST API call to xquery 
function: forest-rename or maybe I'm missing something?
I thought that maybe this will just work and based on "PUT 
/manage/v2/forests/{id|name}/properties" I tried:

$ cat forest-name.xml
http://marklogic.com/manage";>
  blaa


$ curl --anyauth --user user:password -X PUT -d @./forest-name.xml -i -H 
"Content-type: application/xml" 
http://127.0.0.1:8002/manage/v2/forests/forest-name/properties
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="public", qop="auth", 
nonce="16f0b33722bdc4ec775e5afca46da21d", opaque="16f244e1594b02d7"
Content-type: application/xml
Server: MarkLogic
Content-Length: 173
Connection: Keep-Alive
Keep-Alive: timeout=5

HTTP/1.1 400 Bad Request
Content-type: application/xml
Server: MarkLogic
Content-Length: 311
Connection: Keep-Alive
Keep-Alive: timeout=5

http://marklogic.com/manage";>
  400
  Bad Request
  MANAGE-INVALIDPAYLOAD
  MANAGE-INVALIDPAYLOAD: (err:FOER) Payload has errors in 
structure, content-type or values. Cannot validate payload.


User/password is correct because this call works fine:

$ curl -s --anyauth --user user:password -X GET -H "Accept: application/xml" 
http://localhost:8002/manage/v2/forests/forest-name

I tried all 8** ports and localhost as well. I'm stumped.
It doesn't seem like there are API calls for issuing backups of databases. 
(Creating, deleting but not simply backup).
Is it possible to use our xqueries as input to REST API calls, for example?
    -d @xquery-file.file  http:///manage/xquery




Ernest Gulik

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 1:14 PM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Nice,
This seems very promising.
I'll dig into that then.
I have to say that I'm surprised from the speed of responses here, really!
I really appreciate your support. This is awesome!
Thank you!


Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 1:01 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

If what you want to do is script admin tasks, I would recommend using the REST 
API:

http://docs.marklogic.com/REST/management

You can then call that from a shell script using curl or something similar, 
including all of your favorite scripting languages.  The REST api has all of 
the best practices built in.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 7:23 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Thank you for all your responses.
Installation is straight from ML ec2 template, so nothing complicated.
I was trying to figure it out how to script db backups (and other maintenance 
tasks) using command line.
Scripted, because I have a little more control/monitoring in that way.
I have few xqueries that are working fine from qconsole but I want to do as 
less manual tasks as possible.

I might just play around curl with POST and authentication and see how that 
goes since cqsh is not maintain anymore.
Is there command line tool for MarkLogic that is maintained and working? :)
What built-in tools I could use to automate backups, user creation & assigning 
roles, renaming forest?
These exact tasks I'm doing with xqueries (super simple) and just wanted them 
automated.


Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Thursday, October 08, 2015 1:47 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Lo

Re: [MarkLogic Dev General] XDQP version mismatch between local cluster and foreign cluster (David Lee)

2015-10-08 Thread Paul M
Maybe skip DNS by updating host file to make certain ok.

-Paul
  From: "general-requ...@developer.marklogic.com" 

 To: general@developer.marklogic.com 
 Sent: Thursday, October 8, 2015 12:26 PM
 Subject: General Digest, Vol 136, Issue 15
   
Send General mailing list submissions to
    general@developer.marklogic.com

To subscribe or unsubscribe via the World Wide Web, visit
    http://developer.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
    general-requ...@developer.marklogic.com

You can reach the person managing the list at
    general-ow...@developer.marklogic.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of General digest..."


Today's Topics:

  1. Re: XDQP version mismatch between local cluster and foreign
      cluster (Christopher Hamlin)
  2. xml:lang bug (Andreas Hubmer)
  3. Re: XDQP version mismatch between local cluster and foreign
      cluster (David Lee)


--

Message: 1
Date: Thu, 8 Oct 2015 11:08:14 -0400
From: Christopher Hamlin 
Subject: Re: [MarkLogic Dev General] XDQP version mismatch between
    local cluster and foreign cluster
To: MarkLogic Developer Discussion 
Message-ID:
    
Content-Type: text/plain; charset="utf-8"

Given that you said you have 7.0-5.2, and looking at

2015-10-08 15:12:59.907 Warning: XDQPServerConnection::init(10.
245.79.90:7998-10.245.79.92:35041): XDMP-XDQPVER: XDQP version mismatch:
hostname,7000502 10.245.79.92,8000200

It sort of looks like 7.0-5.2 is trying to talk to 8.0-2.  Are you sure
about both ends being 7.0-5.2?



On Thu, Oct 8, 2015 at 10:18 AM, Sudheer Yalaverthi <
sudheer.yalaver...@db.com> wrote:

> Hi,
>
>
>
>
>
> I have since instance of primary and single instance of replica. I am
> trying to couple these two cluster but I am seeing  XDQP version mismatch
> error.
>
> I have 7.0-5.2 on the RHEL environment.
>
>
>
> Both MarkLogic versions match but I am still receiving this error. Based
> on ML documentation, I should be seeing this error only when I different
> versions of ML but that is not the case here.
>
> Any thoughts?
>
>
>
>
>
>
>
> 2015-10-08 15:12:59.907 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35041):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:12:59.934 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35042):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:00.908 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35043):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:00.909 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35044):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:01.907 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35045):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:01.908 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35046):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
>
>
>
>
>
>
>
>
> Regards,
>
> Sudheer
>
>
>
>
> ---
> This communication may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this communication
> in error) please notify the sender immediately and destroy this
> communication. Any unauthorized copying, disclosure or distribution of the
> material in this communication is strictly forbidden.
>
> Deutsche Bank does not render legal or tax advice, and the information
> contained in this communication should not be regarded as such.
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20151008/2fa48ebd/attachment-0001.html
 

--

Message: 2
Date: Thu, 8 Oct 2015 18:25:51 +0200
From: Andreas Hubmer 
Subject: [MarkLogic Dev General] xml:lang bug
To: MarkLogic Developer Discussion 
Message-ID:
    
Content-Type: text/plain; charset="utf-8"

Hello,

There is a bug in ML when you add an xml:lang attribute programmatically.
In a certain case text is indexed in the wrong language.

The following script explains the bug pretty well:

Re: [MarkLogic Dev General] xml:lang bug

2015-10-08 Thread Kevin Ford
Thanks, Andreas.

I submitted a bug about this.

Thanks especially for the code that shows the problem.  Very helpful.

Cordially,
Kevin


From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Andreas Hubmer 
mailto:andreas.hub...@ebcont.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, October 8, 2015 at 11:25 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] xml:lang bug

Hello,

There is a bug in ML when you add an xml:lang attribute programmatically. In a 
certain case text is indexed in the wrong language.

The following script explains the bug pretty well:

xquery version "1.0-ml";

(: We insert a test document. The database language has to be "english".
   The  child is important to reproduce the bug (text on the root level is 
indexed correctly). :)
xdmp:document-insert("/xml-lang-test.xml", text)
;
(: We expect "1". Correct. :)
"test1: " || count(cts:search(/, cts:word-query("text", ("lang=en"
;
(: We add an xml:lang attribute to the root node (xml:lang is inherited by 
definition). :)
xdmp:node-insert-child(doc("/xml-lang-test.xml")/node(), attribute { 
xs:QName("xml:lang") } {"de"})
;
(: We search with lang=de and expect again "1" but this time the document is 
NOT FOUND - BUG! :)
"test2: " || count(cts:search(/, cts:word-query("text", ("lang=de"
;
(: It was not found with lang=de because it is still indexed as English text, 
as we learn from this query. :)
"test3: " || count(cts:search(/, cts:word-query("text", ("lang=en"
;
(: Workaround: We replace the xml:lang attribute with itself. :)
xdmp:node-replace(doc("/xml-lang-test.xml")/node()/@xml:lang, attribute { 
xs:QName("xml:lang") } {"de"})
;
(: Now the search with lang=de works. :)
"test4: " || count(cts:search(/, cts:word-query("text", ("lang=de"
;

xdmp:document-delete("/xml-lang-test.xml")

Is this bug known? Can you tell me when it will be fixed?

Thanks,
Andreas

--
Andreas Hubmer
IT Consultant

EBCONT enterprise technologies GmbH
Millennium Tower
Handelskai 94-96
A-1200 Vienna

Web: http://www.ebcont.com

OUR TEAM IS YOUR SUCCESS

UID-Nr. ATU68135644
HG St.Pölten - FN 399978 d
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Christopher Hamlin
Haven't used it, but there is also:

https://developer.marklogic.com/code/ml-gradle
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Gulik, Ernest
Nice,
This seems very promising.
I'll dig into that then.
I have to say that I'm surprised from the speed of responses here, really!
I really appreciate your support. This is awesome!
Thank you!


Ernest Gulik

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, October 08, 2015 1:01 PM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

If what you want to do is script admin tasks, I would recommend using the REST 
API:

http://docs.marklogic.com/REST/management

You can then call that from a shell script using curl or something similar, 
including all of your favorite scripting languages.  The REST api has all of 
the best practices built in.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 7:23 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Thank you for all your responses.
Installation is straight from ML ec2 template, so nothing complicated.
I was trying to figure it out how to script db backups (and other maintenance 
tasks) using command line.
Scripted, because I have a little more control/monitoring in that way.
I have few xqueries that are working fine from qconsole but I want to do as 
less manual tasks as possible.

I might just play around curl with POST and authentication and see how that 
goes since cqsh is not maintain anymore.
Is there command line tool for MarkLogic that is maintained and working? :)
What built-in tools I could use to automate backups, user creation & assigning 
roles, renaming forest?
These exact tasks I'm doing with xqueries (super simple) and just wanted them 
automated.


Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Thursday, October 08, 2015 1:47 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

A simple curl --anyauth --user {user}:{pass} http://localhost:8001 might be a 
good test as well.

Are you sure you are running the command from the same server on which you 
installed MarkLogic? You can typically check that using something like `sudo 
service MarkLogic status`. That will also tell you whether MarkLogic service is 
up and running.

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Danny Sokolsky 
mailto:danny.sokol...@marklogic.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, October 8, 2015 at 12:51 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Also, cqsh is a super-old project that has not been touched in a very long time.

What is it you are trying to do?  You might try some of the built-in marklogic 
tools or a newer project.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee
Sent: Wednesday, October 07, 2015 3:36 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

You do not want to use the elb, just checking you were not.
What your issue is could be many things , as many as there are ways to 
configure AWS x ML

If you provide some details on how exactly Howe you installed ML, ec2, and what 
your ec2 configuration is like,( vpc, network interfaces, using cluster manager 
or not , mounted devices  )  plus any errors or success logs from 
/var/log/messages and ErrorLog.txt , results from the admin GUI that may help.






Sent from my iPad
David A Lee
d...@marklogic.com


On Oct 7, 2015, at 2:55 PM, Gulik, Ernest 
mailto:egu...@aha.org>> wrote:
Thank you for the quick reply.
Not to ELB,
I'm connecting to private ip address of ec2.
I deployed ML on ec2, downloaded & configured cqsh and followed the guide to 
execute the command.
I can't imagine that this would have to be done through ELB since daemon is 
listening on 0.0.0.0.



Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee
Sent: Wednesday, Octob

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Danny Sokolsky
If what you want to do is script admin tasks, I would recommend using the REST 
API:

http://docs.marklogic.com/REST/management

You can then call that from a shell script using curl or something similar, 
including all of your favorite scripting languages.  The REST api has all of 
the best practices built in.

-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gulik, Ernest
Sent: Thursday, October 08, 2015 7:23 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Thank you for all your responses.
Installation is straight from ML ec2 template, so nothing complicated.
I was trying to figure it out how to script db backups (and other maintenance 
tasks) using command line.
Scripted, because I have a little more control/monitoring in that way.
I have few xqueries that are working fine from qconsole but I want to do as 
less manual tasks as possible.

I might just play around curl with POST and authentication and see how that 
goes since cqsh is not maintain anymore.
Is there command line tool for MarkLogic that is maintained and working? :)
What built-in tools I could use to automate backups, user creation & assigning 
roles, renaming forest?
These exact tasks I'm doing with xqueries (super simple) and just wanted them 
automated.


Ernest Gulik

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Thursday, October 08, 2015 1:47 AM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

A simple curl --anyauth --user {user}:{pass} http://localhost:8001 might be a 
good test as well.

Are you sure you are running the command from the same server on which you 
installed MarkLogic? You can typically check that using something like `sudo 
service MarkLogic status`. That will also tell you whether MarkLogic service is 
up and running.

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Danny Sokolsky 
mailto:danny.sokol...@marklogic.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, October 8, 2015 at 12:51 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Also, cqsh is a super-old project that has not been touched in a very long time.

What is it you are trying to do?  You might try some of the built-in marklogic 
tools or a newer project.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee
Sent: Wednesday, October 07, 2015 3:36 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

You do not want to use the elb, just checking you were not.
What your issue is could be many things , as many as there are ways to 
configure AWS x ML

If you provide some details on how exactly Howe you installed ML, ec2, and what 
your ec2 configuration is like,( vpc, network interfaces, using cluster manager 
or not , mounted devices  )  plus any errors or success logs from 
/var/log/messages and ErrorLog.txt , results from the admin GUI that may help.






Sent from my iPad
David A Lee
d...@marklogic.com


On Oct 7, 2015, at 2:55 PM, Gulik, Ernest 
mailto:egu...@aha.org>> wrote:
Thank you for the quick reply.
Not to ELB,
I'm connecting to private ip address of ec2.
I deployed ML on ec2, downloaded & configured cqsh and followed the guide to 
execute the command.
I can't imagine that this would have to be done through ELB since daemon is 
listening on 0.0.0.0.



Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee
Sent: Wednesday, October 07, 2015 4:45 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux


are you connecting to the elb or the ec2 up?

Sent from my iPhone

On Oct 7, 2015, at 2:16 PM, Gulik, Ernest 
mailto:egu...@aha.org>> wrote:
Hi All,
I'm trying to test cqsh tool with ML7 on Amazon Linux ec2 but for some reason I 
get invalid connection Error and did try all combinations that I can came up 
with but still nothing.
Normally I can access query console on port 8000 but not through this cli:

$ cqsh -u  -p  -H  -P 8000
Failed to connect 

Re: [MarkLogic Dev General] XDQP version mismatch between local cluster and foreign cluster

2015-10-08 Thread David Lee
It may be reuse of IP addresses in DNS.
You may need to track down the server that is running on the errant host and 
look.
Also I have often accidently left the 'service' install running while running a 
debug build -- check the error logs and /var/log/messages for errors about IP 
address in use.   Do ps -eaf to check if multiple ML instances are running

-
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 Sudheer Yalaverthi
Sent: Thursday, October 08, 2015 11:08 AM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] XDQP version mismatch between local 
cluster and foreign cluster

Yes. But I found an weird thing.

My ML 7.0-5.2 hosts are of ips 10.245.79.90 and 10.245.79.91. I have coupled 
only these two.
I have ML8 instance on 10.245.79.92. I am not very sure why 10.245.79.90 is 
pinging to a machine which is not coupled to it and not part of the cluster.

Any thoughts on how to resolve this?


Sudheer

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Markus Flatscher
Sent: Thursday, October 08, 2015 10:32 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] XDQP version mismatch between local 
cluster and foreign cluster

Are both of those IPs (10.245.79.90 and 10.245.79.92) in fact MarkLogic hosts?

On Thu, Oct 8, 2015 at 9:18 AM, Sudheer Yalaverthi 
mailto:sudheer.yalaver...@db.com>> wrote:
Hi,


I have since instance of primary and single instance of replica. I am trying to 
couple these two cluster but I am seeing  XDQP version mismatch error.
I have 7.0-5.2 on the RHEL environment.

Both MarkLogic versions match but I am still receiving this error. Based on ML 
documentation, I should be seeing this error only when I different versions of 
ML but that is not the case here.
Any thoughts?



2015-10-08 15:12:59.907 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35041):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:12:59.934 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35042):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:00.908 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35043):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:00.909 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35044):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:01.907 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35045):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:01.908 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35046):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200




Regards,
Sudheer



---
This communication may contain confidential and/or privileged information. If 
you are not the intended recipient (or have received this communication in 
error) please notify the sender immediately and destroy this communication. Any 
unauthorized copying, disclosure or distribution of the material in this 
communication is strictly forbidden.

Deutsche Bank does not render legal or tax advice, and the information 
contained in this communication should not be regarded as such.

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



--
Markus Flatscher
Consultant | Avalon Consulting, LLC
flatsch...@avalonconsult.com

LinkedIn: http://www.linkedin.com/company/avalon-consulting-llc
Google+: http://www.google.com/+AvalonConsultingLLC
Twitter:https://twitter.com/avalonconsult


---
This communication may contain confidential and/or privileged information. If 
you are not the intended recipient (or have received this communication in 
error) please notify the sender immediately and destroy this communication. Any 
unauthorized copying, disclosure or distribution of the material in this 
communication is strictly forbidden.

Deutsche Bank does not render legal or tax advice, and the information 
contained in this communication should not be regarded as such.
___
General mailing list
General@developer.mar

[MarkLogic Dev General] xml:lang bug

2015-10-08 Thread Andreas Hubmer
Hello,

There is a bug in ML when you add an xml:lang attribute programmatically.
In a certain case text is indexed in the wrong language.

The following script explains the bug pretty well:

xquery version "1.0-ml";

(: We insert a test document. The database language has to be "english".
   The  child is important to reproduce the bug (text on the root
level is indexed correctly). :)
xdmp:document-insert("/xml-lang-test.xml", text)
;
(: We expect "1". Correct. :)
"test1: " || count(cts:search(/, cts:word-query("text", ("lang=en"
;
(: We add an xml:lang attribute to the root node (xml:lang is inherited by
definition). :)
xdmp:node-insert-child(doc("/xml-lang-test.xml")/node(), attribute {
xs:QName("xml:lang") } {"de"})
;
(: We search with lang=de and expect again "1" but this time the document
is NOT FOUND - BUG! :)
"test2: " || count(cts:search(/, cts:word-query("text", ("lang=de"
;
(: It was not found with lang=de because it is still indexed as English
text, as we learn from this query. :)
"test3: " || count(cts:search(/, cts:word-query("text", ("lang=en"
;
(: Workaround: We replace the xml:lang attribute with itself. :)
xdmp:node-replace(doc("/xml-lang-test.xml")/node()/@xml:lang, attribute {
xs:QName("xml:lang") } {"de"})
;
(: Now the search with lang=de works. :)
"test4: " || count(cts:search(/, cts:word-query("text", ("lang=de"
;

xdmp:document-delete("/xml-lang-test.xml")

Is this bug known? Can you tell me when it will be fixed?

Thanks,
Andreas

-- 
Andreas Hubmer
IT Consultant

EBCONT enterprise technologies GmbH
Millennium Tower
Handelskai 94-96
A-1200 Vienna

Web: http://www.ebcont.com

OUR TEAM IS YOUR SUCCESS

UID-Nr. ATU68135644
HG St.Pölten - FN 399978 d
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] XDQP version mismatch between local cluster and foreign cluster

2015-10-08 Thread Sudheer Yalaverthi
Yes. But I found an weird thing.

My ML 7.0-5.2 hosts are of ips 10.245.79.90 and 10.245.79.91. I have coupled 
only these two.
I have ML8 instance on 10.245.79.92. I am not very sure why 10.245.79.90 is 
pinging to a machine which is not coupled to it and not part of the cluster.

Any thoughts on how to resolve this?


Sudheer

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Markus Flatscher
Sent: Thursday, October 08, 2015 10:32 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] XDQP version mismatch between local 
cluster and foreign cluster

Are both of those IPs (10.245.79.90 and 10.245.79.92) in fact MarkLogic hosts?

On Thu, Oct 8, 2015 at 9:18 AM, Sudheer Yalaverthi 
mailto:sudheer.yalaver...@db.com>> wrote:
Hi,


I have since instance of primary and single instance of replica. I am trying to 
couple these two cluster but I am seeing  XDQP version mismatch error.
I have 7.0-5.2 on the RHEL environment.

Both MarkLogic versions match but I am still receiving this error. Based on ML 
documentation, I should be seeing this error only when I different versions of 
ML but that is not the case here.
Any thoughts?



2015-10-08 15:12:59.907 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35041):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:12:59.934 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35042):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:00.908 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35043):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:00.909 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35044):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:01.907 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35045):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:01.908 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35046):
 XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200




Regards,
Sudheer



---
This communication may contain confidential and/or privileged information. If 
you are not the intended recipient (or have received this communication in 
error) please notify the sender immediately and destroy this communication. Any 
unauthorized copying, disclosure or distribution of the material in this 
communication is strictly forbidden.

Deutsche Bank does not render legal or tax advice, and the information 
contained in this communication should not be regarded as such.

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



--
Markus Flatscher
Consultant | Avalon Consulting, LLC
flatsch...@avalonconsult.com

LinkedIn: http://www.linkedin.com/company/avalon-consulting-llc
Google+: http://www.google.com/+AvalonConsultingLLC
Twitter:https://twitter.com/avalonconsult


---
This communication may contain confidential and/or privileged information. If 
you are not the intended recipient (or have received this communication in 
error) please notify the sender immediately and destroy this communication. Any 
unauthorized copying, disclosure or distribution of the material in this 
communication is strictly forbidden.

Deutsche Bank does not render legal or tax advice, and the information 
contained in this communication should not be regarded as such.
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] XDQP version mismatch between local cluster and foreign cluster

2015-10-08 Thread Christopher Hamlin
Given that you said you have 7.0-5.2, and looking at

2015-10-08 15:12:59.907 Warning: XDQPServerConnection::init(10.
245.79.90:7998-10.245.79.92:35041): XDMP-XDQPVER: XDQP version mismatch:
hostname,7000502 10.245.79.92,8000200

It sort of looks like 7.0-5.2 is trying to talk to 8.0-2.  Are you sure
about both ends being 7.0-5.2?



On Thu, Oct 8, 2015 at 10:18 AM, Sudheer Yalaverthi <
sudheer.yalaver...@db.com> wrote:

> Hi,
>
>
>
>
>
> I have since instance of primary and single instance of replica. I am
> trying to couple these two cluster but I am seeing  XDQP version mismatch
> error.
>
> I have 7.0-5.2 on the RHEL environment.
>
>
>
> Both MarkLogic versions match but I am still receiving this error. Based
> on ML documentation, I should be seeing this error only when I different
> versions of ML but that is not the case here.
>
> Any thoughts?
>
>
>
>
>
>
>
> 2015-10-08 15:12:59.907 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35041):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:12:59.934 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35042):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:00.908 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35043):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:00.909 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35044):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:01.907 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35045):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:01.908 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35046):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
>
>
>
>
>
>
>
>
> Regards,
>
> Sudheer
>
>
>
>
> ---
> This communication may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this communication
> in error) please notify the sender immediately and destroy this
> communication. Any unauthorized copying, disclosure or distribution of the
> material in this communication is strictly forbidden.
>
> Deutsche Bank does not render legal or tax advice, and the information
> contained in this communication should not be regarded as such.
>
> ___
> 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] XDQP version mismatch between local cluster and foreign cluster

2015-10-08 Thread Markus Flatscher
Are both of those IPs (10.245.79.90 and 10.245.79.92) in fact MarkLogic
hosts?

On Thu, Oct 8, 2015 at 9:18 AM, Sudheer Yalaverthi <
sudheer.yalaver...@db.com> wrote:

> Hi,
>
>
>
>
>
> I have since instance of primary and single instance of replica. I am
> trying to couple these two cluster but I am seeing  XDQP version mismatch
> error.
>
> I have 7.0-5.2 on the RHEL environment.
>
>
>
> Both MarkLogic versions match but I am still receiving this error. Based
> on ML documentation, I should be seeing this error only when I different
> versions of ML but that is not the case here.
>
> Any thoughts?
>
>
>
>
>
>
>
> 2015-10-08 15:12:59.907 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35041):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:12:59.934 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35042):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:00.908 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35043):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:00.909 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35044):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:01.907 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35045):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
> 2015-10-08 15:13:01.908 Warning:
> XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35046):
> XDMP-XDQPVER: XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
>
>
>
>
>
>
>
>
>
> Regards,
>
> Sudheer
>
>
>
>
> ---
> This communication may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this communication
> in error) please notify the sender immediately and destroy this
> communication. Any unauthorized copying, disclosure or distribution of the
> material in this communication is strictly forbidden.
>
> Deutsche Bank does not render legal or tax advice, and the information
> contained in this communication should not be regarded as such.
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
Markus Flatscher
Consultant | Avalon Consulting, LLC
flatsch...@avalonconsult.com

LinkedIn: http://www.linkedin.com/company/avalon-consulting-llc
Google+: http://www.google.com/+AvalonConsultingLLC
Twitter:https://twitter.com/avalonconsult
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-08 Thread Gulik, Ernest
Thank you for all your responses.
Installation is straight from ML ec2 template, so nothing complicated.
I was trying to figure it out how to script db backups (and other maintenance 
tasks) using command line.
Scripted, because I have a little more control/monitoring in that way.
I have few xqueries that are working fine from qconsole but I want to do as 
less manual tasks as possible.

I might just play around curl with POST and authentication and see how that 
goes since cqsh is not maintain anymore.
Is there command line tool for MarkLogic that is maintained and working? J
What built-in tools I could use to automate backups, user creation & assigning 
roles, renaming forest?
These exact tasks I'm doing with xqueries (super simple) and just wanted them 
automated.


Ernest Gulik

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Thursday, October 08, 2015 1:47 AM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

A simple curl --anyauth --user {user}:{pass} http://localhost:8001 might be a 
good test as well.

Are you sure you are running the command from the same server on which you 
installed MarkLogic? You can typically check that using something like `sudo 
service MarkLogic status`. That will also tell you whether MarkLogic service is 
up and running.

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Danny Sokolsky 
mailto:danny.sokol...@marklogic.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, October 8, 2015 at 12:51 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

Also, cqsh is a super-old project that has not been touched in a very long time.

What is it you are trying to do?  You might try some of the built-in marklogic 
tools or a newer project.

-Danny

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee
Sent: Wednesday, October 07, 2015 3:36 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux

You do not want to use the elb, just checking you were not.
What your issue is could be many things , as many as there are ways to 
configure AWS x ML

If you provide some details on how exactly Howe you installed ML, ec2, and what 
your ec2 configuration is like,( vpc, network interfaces, using cluster manager 
or not , mounted devices  )  plus any errors or success logs from 
/var/log/messages and ErrorLog.txt , results from the admin GUI that may help.






Sent from my iPad
David A Lee
d...@marklogic.com


On Oct 7, 2015, at 2:55 PM, Gulik, Ernest 
mailto:egu...@aha.org>> wrote:
Thank you for the quick reply.
Not to ELB,
I'm connecting to private ip address of ec2.
I deployed ML on ec2, downloaded & configured cqsh and followed the guide to 
execute the command.
I can't imagine that this would have to be done through ELB since daemon is 
listening on 0.0.0.0.



Ernest Gulik

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee
Sent: Wednesday, October 07, 2015 4:45 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid 
connection information. - cqsh with ML7 on Amazon Linux


are you connecting to the elb or the ec2 up?

Sent from my iPhone

On Oct 7, 2015, at 2:16 PM, Gulik, Ernest 
mailto:egu...@aha.org>> wrote:
Hi All,
I'm trying to test cqsh tool with ML7 on Amazon Linux ec2 but for some reason I 
get invalid connection Error and did try all combinations that I can came up 
with but still nothing.
Normally I can access query console on port 8000 but not through this cli:

$ cqsh -u  -p  -H  -P 8000
Failed to connect to Mark Logic. Invalid connection information.
Error: Connection failed
Goodbye.

I tried localhost, loopback ip and all ports 8001-..9 ports that are used by 
the application but no luck.
Can someone point me as to what could be the issue here?


Thank you,
Ernest Gulik

___
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 subscr

[MarkLogic Dev General] XDQP version mismatch between local cluster and foreign cluster

2015-10-08 Thread Sudheer Yalaverthi
Hi,


I have since instance of primary and single instance of replica. I am trying to 
couple these two cluster but I am seeing  XDQP version mismatch error.
I have 7.0-5.2 on the RHEL environment.

Both MarkLogic versions match but I am still receiving this error. Based on ML 
documentation, I should be seeing this error only when I different versions of 
ML but that is not the case here.
Any thoughts?



2015-10-08 15:12:59.907 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35041): XDMP-XDQPVER: 
XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:12:59.934 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35042): XDMP-XDQPVER: 
XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:00.908 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35043): XDMP-XDQPVER: 
XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:00.909 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35044): XDMP-XDQPVER: 
XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:01.907 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35045): XDMP-XDQPVER: 
XDQP version mismatch: hostname,7000502 10.245.79.92,8000200
2015-10-08 15:13:01.908 Warning: 
XDQPServerConnection::init(10.245.79.90:7998-10.245.79.92:35046): XDMP-XDQPVER: 
XDQP version mismatch: hostname,7000502 10.245.79.92,8000200




Regards,
Sudheer



---
This communication may contain confidential and/or privileged information. If 
you are not the intended recipient (or have received this communication in 
error) please notify the sender immediately and destroy this communication. Any 
unauthorized copying, disclosure or distribution of the material in this 
communication is strictly forbidden.

Deutsche Bank does not render legal or tax advice, and the information 
contained in this communication should not be regarded as such.
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Marklogic REST-API Authentication (Login)

2015-10-08 Thread Geert Josten
Hi Rufel,

There is only HTTP level authentication. After that you can use 
rest-reader/rest-writer/rest-admin roles/privs to control level of access you 
want to allow. In other words not per endpoint/function, but only on a general 
level that allows read-only access, PUT/DELETE access, resp. access to deploy 
REST extensions and such.

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of "rpaga...@dci.ph" 
mailto:rpaga...@dci.ph>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, October 8, 2015 at 8:51 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Marklogic REST-API Authentication (Login)

Hi Geert,

I understand that. But first, what rest-api function will I use to build the 
connection? Would I also be using the /v2/search?Second, after authenticating, 
I would want to determine the roles assign to the logged user so I can 
show/allow the user for certain functionalities in my app.

Do you have a sample code?

Thanks for your very quick reply.

Rufel P. Aganan
Systems Analyst
DBP Data Center, Inc.
848-0277



From:Geert Josten 
mailto:geert.jos...@marklogic.com>>
To:MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Cc:"afce...@dci.ph" 
mailto:afce...@dci.ph>>, 
"rrtrini...@dci.ph" 
mailto:rrtrini...@dci.ph>>, "Ortega, Maggi" 
mailto:msort...@dci.ph>>
Date:10/08/15 02:45 PM
Subject:Re: [MarkLogic Dev General] Marklogic REST-API Authentication 
(Login)
Sent by:
general-boun...@developer.marklogic.com




Hi Rufel,

The fact that you are able to put data/docs, and search through them means you 
are already able to authenticate against MarkLogic. You typically build up a 
connection, and that is when you provide user/password.

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of "rpaga...@dci.ph" 
mailto:rpaga...@dci.ph>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, October 8, 2015 at 8:12 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Cc: "afce...@dci.ph" 
mailto:afce...@dci.ph>>, 
"rrtrini...@dci.ph" 
mailto:rrtrini...@dci.ph>>, "Ortega, Maggi" 
mailto:msort...@dci.ph>>
Subject: [MarkLogic Dev General] Marklogic REST-API Authentication (Login)

Hi everyone,

I am new to Marklogic and I am currently developing an application from .net 
and connecting to marklogic via rest-api. I am able to put data and documents 
and do search through it.  However to complete my application, I need to 
authenticate in the marklogic security database for login purposes in my 
application. But it seems I cannot find the way to do it. I have tried using 
management rest-api but i think its not the way to do it. I have also tried 
invoking a rest-api extension but seems I dont go anywhere. Can anybody give me 
an example on how to do it. I'll appreciate it better if example is done 
through .net. Thank you in advance.

Rufel P. Aganan
Systems Analyst
DBP Data Center, Inc.
848-0277 ___
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] Email notifications for successful and failed ML backups

2015-10-08 Thread David Ennis
In ErrorLog, the backup information is logged as Info - so as long as you have 
that log level, then it is likely that COTS monitoring software can handle this.


Keep in mind, there is likely not just 1 success/fail you are looking for.  
When you back up a database, you may also be backing up forests, security db, 
schemas db, etc - depending on your  settings. EACH of those has their own log 
message set "Starting backup of xxx, Finishing xxx, finished xxx" etc.  You 
know that they are all part of the same backup job from the job id.




DAVID ENNIS
t: +31630917280
[http://www.hinttech.com/signature/tahzoo_logo.jpg]



From: general-boun...@developer.marklogic.com 
 on behalf of Geert Josten 

Sent: Thursday, October 8, 2015 8:50 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Email notifications for successful and 
failed ML backups

You could of course run scheduled tasks inside MarkLogic, but it would indeed 
be nice if you could execute some script after each backup. Unfortunately, that 
doesn't seem possible.

You might be able to watch logging though. I'm not entirely sure, but I think I 
heard colleagues talk about monitoring syslog for instance..

Cheers,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of "Gulik, Ernest" mailto:egu...@aha.org>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Wednesday, October 7, 2015 at 4:15 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Email notifications for successful and 
failed ML backups


Hello,

I'm trying to setup similar backups with notifications as well in ML 7 but it 
doesn't seem like this functionality is supported out of the box.

Our approach is to setup cronjob that would execute script with xqueries.

I'm exploring tool https://developer.marklogic.com/code/cqsh that supposed to 
be an alternative to web gui but it's a pain to setup prerequisites.

Maybe someone who knows a lot about MarkLogic could respond if maybe cqsh could 
be a better approach to backups with notifications (or command line management) 
or maybe there's a better way of attacking that task ?







Thank you,

Ernest G.



From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sinang
Sent: Tuesday, October 06, 2015 5:56 PM
To: general 
mailto:General@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Email notifications for successful and failed 
ML backups



Is there a way to make ML send email notifications for successful and failed 
scheduled backups (configured via the ML admin UI) ?



Regards,
Danny




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