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

2015-10-14 Thread Gulik, Ernest
Hi all, That was helpful but didn't kind of work and I think I might be doing something wrong here or our ML instance is not configured to use REST API calls. I saved this code as renameForest.xqy (modified what was needed) and tried to install it as new extension but I'm failing miserably.. L

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

2015-10-09 Thread Gulik, Ernest
I went through documentation on how to create extensions and looked at that example but for me these look more like for document manipulation rather than for server management. How can I convert xquery for backing up databases to

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

2015-10-09 Thread Dave Cassel
An extension that would rename a forest would look something like this (not tested): xquery version "1.0-ml"; module namespace ren = "http://marklogic.com/rest-api/resource/rename-forest;; import module namespace admin = "http://marklogic.com/xdmp/admin; at "/MarkLogic/admin.xqy"; declare

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

2015-10-08 Thread Geert Josten
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

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

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

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

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

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:

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:

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

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:

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

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

2015-10-07 Thread Gulik, Ernest
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

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

2015-10-07 Thread Danny Sokolsky
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

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

2015-10-07 Thread David Lee
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

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

2015-10-07 Thread David Lee
are you connecting to the elb or the ec2 up? Sent from my iPhone On Oct 7, 2015, at 2:16 PM, Gulik, Ernest > 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