Jaydip, you can use Query Console to look into document permissions with the xdmp:document-get-permissions()<http://docs.marklogic.com/xdmp:document-get-permissions> function. What you'll get back are sets of capability/role-id pairings. You can look up the role names with sec:get-role-names()<http://docs.marklogic.com/sec:get-role-names> (note that this function needs to be run against the Security database, while the first is to be run against your content database.
Presumably you'll find at least one role that has read permission and you can add that role to read-only-user. After you've done the copy, you should check that you got the number of documents you expected. If you didn't, there may be other documents that require a different role to be seen. -- Dave Cassel<http://davidcassel.net>, @dmcassel<https://twitter.com/dmcassel> Developer Community Manager MarkLogic Corporation<http://www.marklogic.com/> Data Innovation Summit<http://fedscoop.com/events/datainnovationsummit/2015/> May 7th in DC From: jaydip rananavare <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Thursday, April 23, 2015 at 2:35 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] mlcp copy database issue Hello All, We are using mlcp copy command to copy content between two databases but we are facing an issue. Problem: When we run the command it is able to connect to source database but it does not read any content hence nothing gets copied. What we are doing: Here is our command: ./mlcp.sh copy \ -input_host "source-host" \ -input_port "8000" \ -input_username "read-only-user" \ -input_password "****" \ -input_database "source-db" \ -directory_filter "/some-directory/" \ -output_host "target-host" \ -output_port "8000" \ -output_username "admin" \ -output_password "****" \ -output_database "target-db" What we think is causing problem: We think that the user that we are using to connect to source machine does not have correct privileges. We followed this document [https://docs.marklogic.com/guide/ingestion/content-pump#id_47736] and granted [hadoop-user-read] role but still it did not work (mlcp can connect to source database but cannot read content). The same command works and copies content if we use admin user to connect to source database. It is not clear what minimal roles/privileges we need to setup so that given command will work. Could you please help us? -Regards, Jaydip Rananavare
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
