How to copy all artifacts from user A to user B ?

4 followers
0
Avatar

Hi there,

 

In my workplace, we use datameer for Hadoop. I am new to datameer. I have been asked to perform a job. Let's say, I am user C and

User A has been creating and maintaining all datameer jobs and he wants someone else (User B) to maintain the jobs. So, I have been asked to copy all the artifacts from user A to user B.

But, i don't have read Permission on user A folders.

But, How can i achieve this process?.

Also, I am wondering what happens under the hood if we copy all the artifacts from user A to user B. Does it copy the underline data as well or it copies only the artifacts?

Suppose if it copies the underline data as well, then there will be 2 copies of same data and how data integration  will be managed. Also, it is not necessary having 2 copies right..

 

Please note that, this is in Production.

 

Thanks,

Jee

 

 

 

Jee

Official comment

  • Avatar
    Joel Stewart

    In order to create a copy of any artifact, it is required that you have Read access to the original artifact. If that is not available for a specific user, any Datameer administrator could perform the copy instead.

    Generally speaking, the copy function copies only the definition of the artifact and not the underlying data for it. 

    0

7 comments

  • Avatar
    Jee

    Hi there,

     

    Thanks for  your reply. But, my senior technical specialist told that when we don't have read permission, we can use REST API curl command to copy folders and files from one user to another user.

    I am not sure the steps which involves to copy folders and files using REST commands. 

    0
  • Avatar
    Ron Lim

    To copy a file, you need read access. With regards to REST API, we do not support copying of files. Here's what our REST API supports.

     

    0
  • Avatar
    Jee

    I am wondering is there any other way to copy artifacts from one user to another user without using GUI even if we have READ access.

    0
  • Avatar
    Alan Mark

    Hi Jee,

    There is no direct copy command.  However you can Read an artifact to get the JSON description, then modify the JSON to give the file a new name, and finally Create a new artifact based on that JSON description.  This would give you a second copy of the file.

    You can find the details on how to Read and Create artifacts using the REST API here: Overview Table REST Commands

    Additionally, I'm wondering if you don't necessarily want a copy of an artifact, but maybe just want to change the ownership of an existing artifact?  You can also do this with the REST API, and the details can be found in the link above.

    0
  • Avatar
    Joel Stewart

    Please note that using the REST API to initiate a copy outside of the GUI still requires privileges to read the original artifact. 

    0
Please sign in to leave a comment.