官术网_书友最值得收藏!

Putting data into data repositories

Let's say that we have a simple text file:

$ cat blah.txt 
This is an example file.

If this file is part of the data we are utilizing in our ML workflow, we should version it. To version this file in our repository, myrepo, we just need to commit it into that repository:

$ pachctl put-file myrepo master -c -f blah.txt 

The -c flag specifies that we want Pachyderm to open a new commit, insert the file we are referencing, and close the commit all in one shot. The -f flag specifies that we are providing a file.

Note that we are committing a single file to the master branch of a single repository here. However, the Pachyderm API is incredibly flexible. We can commit, delete, or otherwise modify many versioned files in a single commit or over multiple commits. Further, these files could be versioned via a URL, object store link, database dump, and so on.

As a sanity check, we can confirm that our file was versioned in the repository:

$ pachctl list-repo
NAME CREATED SIZE
myrepo 10 minutes ago 25 B
$ pachctl list-file myrepo master
NAME TYPE SIZE
blah.txt file 25 B
主站蜘蛛池模板: 江永县| 涿州市| 肃南| 招远市| 满洲里市| 寻乌县| 通化市| 龙江县| 清镇市| 旌德县| 滦南县| 略阳县| 竹溪县| 天镇县| 剑川县| 盐边县| 交城县| 金堂县| 乐东| 桂林市| 棋牌| 祁东县| 通辽市| 册亨县| 桐庐县| 平远县| 清涧县| 肥城市| 莱州市| 万荣县| 阜新市| 霸州市| 东港市| 武强县| 东乌| 睢宁县| 贵溪市| 儋州市| 青川县| 十堰市| 涡阳县|