1
votes

Azure Data Factory v2 has a Get Metadata activity which can read meta data on the files stored in ADLS. It can preserve the meta data on files when it moves/copies the files. But is there a way to add or modify meta data on the lake files using ADF?

2
Which type of the meta data you want to modify?Joseph Xu

2 Answers

1
votes

The meta data are created by Data Lake(Storage) once the files are uploaded on.

These properties can not be changed unless you delete and re-upload them to Data Lake(or Stroage). Some others have asked the same questions about how to change this meta data in Stack overflow. You could easily find these by seraching.

But if you modify the content of the file in Data Lake, such as add or delete columns, the size, columnCount and structure can be changed.

So for the question "is there a way to add or modify meta data on the lake files using ADF?", the answer is no, there isn't.

HTP.

1
votes

Yes there's a way.

You can make use of Azure Blob Storage API:

set-blob-metadata method for Blob Storage

Data lake is just an extension to underlying Blob Storage engine

So, you can hook up a web activity in your pipeline and call the rest api pointing at your blob and it will set metadata for you.