marklogic-contentpump | MarkLogic Contentpump
kandi X-RAY | marklogic-contentpump Summary
kandi X-RAY | marklogic-contentpump Summary
MarkLogic Content Pump (mlcp) is a command-line tool that provides the fastest way to import, export, and copy data to or from MarkLogic databases. Core features of mlcp include:. You can run mlcp across many threads on a single machine or across many nodes in a cluster. Mlcp can now run against MarkLogic clusters hosted on AWS/Azure. The MarkLogic Connector for Hadoop is an extension to Hadoop’s MapReduce framework that allows you to easily and efficiently communicate with a MarkLogic database from within a Hadoop job. From 10.0-5, Hadoop Connector is removed from a separate release, but mlcp still uses Hadoop Connector as an internal dependency.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get input splits
- Append the query to the StringBuilder
- Append the redact test query
- Append namespace bindings
- Find the next key value
- Retrieve properties from configuration
- Parse the metadata from the sequence
- Initializes the split
- Return a query input query based on the specified namespace
- Runs the application maps
- Create the appropriate Content
- Gets the splits
- Helper method to apply copying configuration options
- Get next key value
- Read the next record
- Returns a string representing the xquery
- Configure connection id
- Closes all sessions
- Write document
- This method writes value to forest
- Commits all pending sessions
- Insert a batch
- Apply filtering configuration options
- Returns a list of InputSplits based on the job configuration
- Deserialize this node
- Initialize the graph version
marklogic-contentpump Key Features
marklogic-contentpump Examples and Code Snippets
Community Discussions
Trending Discussions on marklogic-contentpump
QUESTION
I wanted to write the document to marklogic database using marklogic mapreduce api, lets say here is the example. I wanted to add metadata to the document which i am writing it back to the marklogic database in the reducer -
...ANSWER
Answered 2017-Jan-03 at 17:40For Metadata, I am assuming you are talking about the document properties fragment. For background on document properties, please see here: https://docs.marklogic.com/guide/app-dev/properties#id_19516
For use in MarkLogic mapreduce, please see here (the output classes): https://docs.marklogic.com/guide/mapreduce/output#id_76625
I believe you need to extend/modify your example to also write content to the properties fragment using the PropertyOutputFormat class.
One of the sample applications in the same documentation is an example of saving content in the properties fragment. If, however, you would like to fast-track yourself by looking at some source code: see some examples - including writing to a document property fragment, see here: https://gist.github.com/evanlenz/2484318 - specifically LinkCountInProperty.java
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install marklogic-contentpump
Steps to build mlcp:. The build writes to the respective deliverable directory under under the root directory marklogic-contentpump/. For information on contributing to this project see CONTRIBUTING.md. For information on working on development of this project see project wiki page.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page