I have marklogic 9 on a cluster . I am trying to perform mlcp from one collection to another on the server .
Please find the attached code below
MlcpBean mlcpBean = new MlcpBean();
mlcpBean.setCommand("COPY");
mlcpBean.setInput_database("somehost");
mlcpBean.setCollection_filter("somecollection");
mlcpBean.setInput_host("somehost");
mlcpBean.setInput_port(some port);
mlcpBean.setInput_username("some user id");
mlcpBean.setInput_password("some password");
String[] args1 = mlcpBean.buildArgs();
String[] expandedArgs =
OptionsFileUtil.expandArguments(args1);
// Invoke mlcp
ContentPump.runCommand(expandedArgs); }
When I run the above class it gives me the following error
01:01:00.104 [scheduling-1] WARN c.m.mapreduce.MarkLogicInputFormat - Unable to connect to "********.com" to query source information
01:01:00.104 [scheduling-1] ERROR c.m.contentpump.LocalJobRunner - Error getting input splits:
01:01:00.104 [scheduling-1] ERROR c.m.contentpump.LocalJobRunner - Unable to query source information, no usable hostname found.
It does not even connect to the host .
I have verified from another program which is not runnning mlcp but using databaseclientfactory that connection could be established
I am also unable to verify if -ssl_protocol is TLSv1.2
Can some one kindly help me with this issue.