2017-03-27 2 views
0

ich den folgenden Befehl bin mitFehler mit MLKP Kopie Syntax

mlcp.sh copy -input_host localhost -output_host localhost \ 
-input_database emh-entity-manager-content \ 
-output_database emh-schema-map-manager-content \ 
-input_port 8000 -input_username admin -input_password xxxxxx \ 
-document_selector '/envelope[descendant::*:CustomerID = "SEVES"]' 

Und ich erhalte die Fehler

ERROR contentpump.ContentPump: Unrecognized argument: = 
usage: COPY [-batch_size <number>] [-collection_filter <String>] 
    [-copy_collections <true,false>] [-copy_permissions <true,false>] 
    [-copy_properties <true,false>] [-copy_quality <true,false>] 
    [-directory_filter <String>] [-document_selector <String>] 
    [-fastload <true,false>] [-hadoop_conf_dir <directory>] 
    [-input_database <database>] -input_host <host> [-input_password 
    <password>] [-input_port <port>] [-input_username <username>] 
    [-max_split_size <number>] [-min_split_size <number>] [-mode 
    <mode>] [-output_collections <collections>] [-output_database 
    <database>] [-output_directory <directory>] -output_host <host> 
    [-output_partition <partition name>] [-output_password <password>] 
    [-output_permissions <permissions>] [-output_port <port>] 
    [-output_quality <quality>] [-output_uri_prefix <prefix>] 
    [-output_uri_replace <list>] [-output_uri_suffix <suffix>] 
    [-output_username <username>] [-path_namespace <String>] 
    [-query_filter <String>] [-snapshot <true,false>] 
    [-temporal_collection <String>] [-thread_count <count>] 
    [-tolerate_errors <tolerate errors>] [-transaction_size <number>] 
    [-transform_function <String>] [-transform_module <String>] 
    [-transform_namespace <String>] [-transform_param <String>] 

Die Fehlermeldung ist ziemlich nutzlos. Ich versuche, eine Reihe von Dateien zu kopieren, die einem bestimmten xpath von einer Datenbank zu einer anderen auf demselben Server entsprechen.

Was fehlt mir?

Danke, Loren

Antwort

3

Es gibt ein paar Dinge, die sich:

  • Sie vermissen die output_username
  • Sie vermissen die output_password
  • Sie sind über eine Art Befehl ausführen -Entweichungsfrage

MLKP hat eine schöne Option namens -options_file, die kümmern sich um die entweichende Befehlszeile hilft. Sie fügen einfach alle Optionen zu einer Datei hinzu und diese wird stattdessen analysiert. https://docs.marklogic.com/guide/mlcp/intro#id_36150

Der Befehl, den ich verwenden würde, ist:

/path/to/mlcp.sh -options_file options.txt 

Mit dem Inhalt der Datei options.txt Wesen:

copy 
-input_host 
localhost 
-output_host 
localhost 
-input_database 
emh-entity-manager-content 
-output_database 
emh-schema-map-manager-content 
-input_port 
8000 
-input_username 
admin 
-input_password 
xxxxxx 
-output_username 
admin 
-output_password 
xxxxxx 
-document_selector 
/envelope[descendant::*:CustomerID = "SEVES"] 
+0

Das ist, was ich tun endete und es funktionierte. Vielen Dank –