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

Question: roxy variables in mlcp #426

Closed
JackYoungblood opened this issue May 1, 2015 · 3 comments
Closed

Question: roxy variables in mlcp #426

JackYoungblood opened this issue May 1, 2015 · 3 comments
Assignees
Milestone

Comments

@JackYoungblood
Copy link

JackYoungblood commented May 1, 2015

When I type ml mlcp --help I learned that:
Roxy applies variable substitution within option files. You may use variables like:
-input_file_path
${ml.data.dir}/

So I prepared an options file, User1mlcpOptions.txt, with the following text:
-host localhost -username admin -password admin -port 8041 -input_file_path ${ml.data.dir}/User1Files

and I invoked mlcp through roxy by from a terminal by typing:
bash ml local mlcp import -options_file User1mlcpOptions.txt

And it returned the following message:
15/05/01 12:58:34 ERROR contentpump.ContentPump: Error parsing command arguments:
15/05/01 12:58:34 ERROR contentpump.ContentPump: Unrecognized option: -host localhost -username admin -password admin -port 8041 -input_file_path ${ml.data.dir}/User1Files`

The data files to load are located in: /home/Jack/Dropbox/MarkLogic/Tech/SecurityDemo/SecurityDemo-roxy/data/User1Files

When I type ml local info I am told that ml.data.dir: /home/Jack/Dropbox/MarkLogic/Tech/SecurityDemo/SecurityDemo-roxy/data

So it looks like things are pointed to appropriate directories.

What am I doing wrong here?

Thanks,

  • Jack
@paxtonhare
Copy link
Contributor

Sandy,

It looks like the help text is incorrect. You should be writing them like
so:

-input_file_path
@ml.data.dir/

@grtjn
Copy link
Contributor

grtjn commented May 1, 2015

The error comes from MLCP. You need to put arg names and values each on a separate line..

-input_file_path
somedir
...

@dmcassel
Copy link
Collaborator

dmcassel commented May 7, 2015

fixed in dev

@dmcassel dmcassel closed this as completed May 7, 2015
@grtjn grtjn modified the milestone: 1.7.3 Jun 30, 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