Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Integrate with mlcp #78

Closed
dmcassel opened this issue Jan 29, 2013 · 4 comments
Closed

Integrate with mlcp #78

dmcassel opened this issue Jan 29, 2013 · 4 comments

Comments

@dmcassel
Copy link
Collaborator

Currently the deployer can use XQSync or recordloader. Add mlcp, since that's officially supported by MarkLogic.

@adamfowleruk
Copy link

+1 for this. Was just looking at the Loading Content section to put my demo projects in line with that. Having MLCP support would mean less things to install by the users too. (Most people on V6 and above already have it installed). If we can preserve the same substitution as in XQSync with Roxy that'd be great. This would allow me to have multiple MLCP configurations that each load content in subdirectories of /data/ with different settings (E.g. collections, permissions, etc.)

As an extra fringe case, it would allow me to easily script several MLCP runs in a step-by-step manner. That way in my demo I can run these with timed breaks between them, to enable me to show things changing in real time in my demo. Great for situational awareness and alerting apps.

@bobstarbird
Copy link

I updated my app_specific.rb to use mlcp:

Had to do some env work to get JAVA to run on my host since my Ruby is 32 bit and could not find 64 bit JAVA.

def load_reference_data_zip()
  ENV['PATH'] = ENV['PATH'] + ';' + ENV['JAVA_HOME'] + '/bin'
  cmd = %Q{./mlcp-extract-and-load/bin/mlcp.bat import -host localhost -port @ml.xcc-port -username @ml.user -password @ml.password -mode local -input_file_path ./mlcp-extract-and-load/Batch-Files/output -document_type xml -input_compressed -output_collections http://company.com/ReferenceData -output_uri_prefix /reference/spreadsheets/ -thread_count 12}

  @properties.each do |k, v|
    cmd.gsub!("@#{k}", v)
  end

  `#{cmd}`
end

@grtjn
Copy link
Contributor

grtjn commented Apr 29, 2014

My pull request contains functionality to call mlcp through roxy. Run ml mlcp --help or ml local mlcp for usage. Any extra args are passed through to mlcp, with addition of the connection args. Option files are processed to replace variables..

@grtjn
Copy link
Contributor

grtjn commented Feb 26, 2015

Still some room for improvement, but separate tickets have been created for that. Closing this, available in both master and dev..

@grtjn grtjn closed this as completed Feb 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants