cap -f path/to/your/capfile [target_host] [task]
Tuesday, 13 December 2011
Capistrano: standard invocation note
Friday, 9 December 2011
MarkLogic: Using XCC/J to pass content to an installed Module
Wednesday, 2 November 2011
MarkLogic: Next steps with the MarkLogic Hadoop Connector (MarkLogic 5.0-1)
Following on from my post yesterday, here's a further example usage for the hadoop connector
Listed below is an example showing how you can use the connector to update an existing document in MarkLogic. As before, we're only focusing on the Map phase of Map/Reduce in order to keep things simple.
Prerequisites:
- You'll need the hadoop connector on your buildpath, which is here
- In addition to having installed MarkLogic 5, you'll need to create an XDBC server (for this example, I'm using port 9999 and targeting the Documents database).
When you're ready, create one XML doc in the database:
Then try the following:
This is the content for the XML config file src/main/resources/marklogic-mlnode-update.xml (referred to in the code above):
And the xcc/j connector for MarkLogic 5.0-1 is now in maven, so all other dependencies can be resolved by this pom:
Enjoy your elephant...
Tuesday, 1 November 2011
MarkLogic: First steps with the MarkLogic hadoop connector (MarkLogic 5.0-1)
If you've just installed MarkLogic 5 and you're interested in spending some time checking out the hadoop connector, this may be a useful accompaniment to all the documentation available from the newly [re]launched MarkLogic Developer Community site.
There's quite a lot to get to grips with regarding the hadoop connector and this will probably be a topic warranting a number of posts over time. But as an additional resource for getting started (in addition to all the sample code and resources available here, this may be of some use.
Briefly, it shows a simplistic use of the connector - which in itself is not so useful as all it currently does is completely overwrite a document within the database with a new node, but it should give an idea as to how the connector could be configured to perform updates to existing data - which I hope to comment on within the next few days.
Prerequisites:
- You'll need the hadoop connector, which is here
- You'll also need to grab the latest xcc connector
- In addition to having installed MarkLogic 5, you'll need to create an XDBC server (for this example, I'm using port 9999 and targeting the Documents database).
Sunday, 23 October 2011
MarkLogic/XCC/HttpClient: Connecting to an XDBC Application Server using HttpClient
Wednesday, 12 October 2011
Scala: Example of heirarchical sorting by distinct values
In this context, bear in mind that sorted will return values sorted alphabetically - but you probably get the idea...
Thursday, 6 October 2011
MarkLogic/Apache HttpClient: POSTing form data containing characters with diacritics
Source: http://hc.apache.org/httpclient-3.x/preference-api.html
Blog Archive
-
▼
2011
(35)
-
►
June
(6)
- MarkLogic/XCC: Copying a Module with User Content ...
- MarkLogic: clearing a forest in a database program...
- MarkLogic: Enabling debug options when using the S...
- Linux: SCP syntax and structure note
- MarkLogic/XCC: Installing Modules Programatically
- Eclipse: Installing XQDT (and DLTK) on Eclipse Ind...
-
►
June
(6)
-
►
2010
(43)
-
►
September
(7)
- MarkLogic: Creating Multiple Range Element Indexes...
- MarkLogic: Listing all Collections in a Database
- MarkLogic: Basic Database Cloning Script
- MarkLogic: Estimating the number of documents cont...
- MarkLogic: Search: Compound OR Queries
- MarkLogic: XQuery: Check for the presence of an el...
- MarkLogic: XQuery: Type Validation using xsi:type
-
►
September
(7)