{"action":"created","comment":{"url":"https://api.github.com/repos/apache/oozie/pulls/comments/182616235","pull_request_review_id":113446782,"id":182616235,"diff_hunk":"@@ -1612,6 +1612,83 @@ values and in XML element and attribute values.\n They cannot be used in XML element and attribute names. They cannot be used in the name of a node and they cannot be\n used within the =transition= elements of a node.\n \n+#GitAction\n+---++++ 3.2.7 Git action\n+\n+The =git= action allows one to clone a Git repository into HDFS. The supported options are\n+are =git-uri=, =branch=, =key-path= and =destination-uri=.\n+\n+The Git clone is executed asynchronously. If an SSH key is specified it will be created on the file system in a YARN local directory, relying on YARN to remove the file after the action has run.\n+\n+XXX TODO XXX Path names specified in the =git= action should be able to be parameterized (templatized) using EL expressions.\n+Path name should be specified as a absolute path. Each file path must specify the file system URI.\n+\n+*Syntax:*\n+\n+<verbatim>\n+<workflow-app name=\"[WF-DEF-NAME]\" xmlns=\"uri:oozie:workflow:0.1\">\n+    ...\n+    <action name=\"[NODE-NAME]\">\n+        <git>\n+            <git-uri>[SOURCE-URI</git-uri>\n+            ...\n+            <branch>[BRANCH]</branch>\n+            ...\n+            <key-path>[HDFS-PATH]</key-path>\n+            ...\n+            <destination-uri>[HDFS-PATH]</destination-uri>\n+        </git>\n+        <ok to=\"[NODE-NAME]\"/>\n+        <error to=\"[NODE-NAME]\"/>\n+    </action>\n+    ...\n+</workflow-app>\n+</verbatim>\n+\n+*Example:*\n+\n+<verbatim>\n+<workflow-app name=\"sample-wf\" xmlns=\"uri:oozie:workflow:0.1\">\n+    ...\n+    <action name=\"clone_oozie\">\n+         <git>\n+            <git-uri>https://github.com/apache/oozie</git-uri>\n+            <destination-uri>hdfs://my_git_repo_directory</destination-uri>\n+        </fs>\n+        <ok to=\"myotherjob\"/>\n+        <error to=\"errorcleanup\"/>\n+    </action>\n+    ...\n+</workflow-app>\n+</verbatim>\n+\n+In the above example, a Git repo on GitHub.COM is cloned to the HDFS directory =my_git_repo_directory= which should not exist on the filesystem.\n+\n+XXX TODO XXX does this work, if a =name-node= element is specified, then it is not necessary for any of the paths to start with the file system","path":"docs/src/site/twiki/WorkflowFunctionalSpec.twiki","position":56,"original_position":56,"commit_id":"61a213ba6e59c728da0d9780c630309d4ebaa7f8","original_commit_id":"61a213ba6e59c728da0d9780c630309d4ebaa7f8","user":{"login":"cbaenziger","id":4192761,"avatar_url":"https://avatars2.githubusercontent.com/u/4192761?v=4","gravatar_id":"","url":"https://api.github.com/users/cbaenziger","html_url":"https://github.com/cbaenziger","followers_url":"https://api.github.com/users/cbaenziger/followers","following_url":"https://api.github.com/users/cbaenziger/following{/other_user}","gists_url":"https://api.github.com/users/cbaenziger/gists{/gist_id}","starred_url":"https://api.github.com/users/cbaenziger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbaenziger/subscriptions","organizations_url":"https://api.github.com/users/cbaenziger/orgs","repos_url":"https://api.github.com/users/cbaenziger/repos","events_url":"https://api.github.com/users/cbaenziger/events{/privacy}","received_events_url":"https://api.github.com/users/cbaenziger/received_events","type":"User","site_admin":false},"body":"Andras let me ask you some questions tomorrow/today on these options and how best to document them.","created_at":"2018-04-19T01:54:52Z","updated_at":"2018-04-19T01:54:52Z","html_url":"https://github.com/apache/oozie/pull/37#discussion_r182616235","pull_request_url":"https://api.github.com/repos/apache/oozie/pulls/37","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/apache/oozie/pulls/comments/182616235"},"html":{"href":"https://github.com/apache/oozie/pull/37#discussion_r182616235"},"pull_request":{"href":"https://api.github.com/repos/apache/oozie/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/apache/oozie/pulls/37","id":182641423,"html_url":"https://github.com/apache/oozie/pull/37","diff_url":"https://github.com/apache/oozie/pull/37.diff","patch_url":"https://github.com/apache/oozie/pull/37.patch","issue_url":"https://api.github.com/repos/apache/oozie/issues/37","number":37,"state":"open","locked":false,"title":"OOZIE-2877 Oozie Git Action","user":{"login":"cbaenziger","id":4192761,"avatar_url":"https://avatars2.githubusercontent.com/u/4192761?v=4","gravatar_id":"","url":"https://api.github.com/users/cbaenziger","html_url":"https://github.com/cbaenziger","followers_url":"https://api.github.com/users/cbaenziger/followers","following_url":"https://api.github.com/users/cbaenziger/following{/other_user}","gists_url":"https://api.github.com/users/cbaenziger/gists{/gist_id}","starred_url":"https://api.github.com/users/cbaenziger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbaenziger/subscriptions","organizations_url":"https://api.github.com/users/cbaenziger/orgs","repos_url":"https://api.github.com/users/cbaenziger/repos","events_url":"https://api.github.com/users/cbaenziger/events{/privacy}","received_events_url":"https://api.github.com/users/cbaenziger/received_events","type":"User","site_admin":false},"body":"This is for code review of [OOZIE-2877](https://issues.apache.org/jira/browse/OOZIE-2877).","created_at":"2018-04-19T01:07:23Z","updated_at":"2018-04-19T01:54:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"927a3f0bdd03ee66b7526a288e66c029ba7fb5f1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/oozie/pulls/37/commits","review_comments_url":"https://api.github.com/repos/apache/oozie/pulls/37/comments","review_comment_url":"https://api.github.com/repos/apache/oozie/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/oozie/issues/37/comments","statuses_url":"https://api.github.com/repos/apache/oozie/statuses/61a213ba6e59c728da0d9780c630309d4ebaa7f8","head":{"label":"cbaenziger:git_action_master_Apr_18_2018","ref":"git_action_master_Apr_18_2018","sha":"61a213ba6e59c728da0d9780c630309d4ebaa7f8","user":{"login":"cbaenziger","id":4192761,"avatar_url":"https://avatars2.githubusercontent.com/u/4192761?v=4","gravatar_id":"","url":"https://api.github.com/users/cbaenziger","html_url":"https://github.com/cbaenziger","followers_url":"https://api.github.com/users/cbaenziger/followers","following_url":"https://api.github.com/users/cbaenziger/following{/other_user}","gists_url":"https://api.github.com/users/cbaenziger/gists{/gist_id}","starred_url":"https://api.github.com/users/cbaenziger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbaenziger/subscriptions","organizations_url":"https://api.github.com/users/cbaenziger/orgs","repos_url":"https://api.github.com/users/cbaenziger/repos","events_url":"https://api.github.com/users/cbaenziger/events{/privacy}","received_events_url":"https://api.github.com/users/cbaenziger/received_events","type":"User","site_admin":false},"repo":{"id":130137195,"name":"oozie","full_name":"cbaenziger/oozie","owner":{"login":"cbaenziger","id":4192761,"avatar_url":"https://avatars2.githubusercontent.com/u/4192761?v=4","gravatar_id":"","url":"https://api.github.com/users/cbaenziger","html_url":"https://github.com/cbaenziger","followers_url":"https://api.github.com/users/cbaenziger/followers","following_url":"https://api.github.com/users/cbaenziger/following{/other_user}","gists_url":"https://api.github.com/users/cbaenziger/gists{/gist_id}","starred_url":"https://api.github.com/users/cbaenziger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbaenziger/subscriptions","organizations_url":"https://api.github.com/users/cbaenziger/orgs","repos_url":"https://api.github.com/users/cbaenziger/repos","events_url":"https://api.github.com/users/cbaenziger/events{/privacy}","received_events_url":"https://api.github.com/users/cbaenziger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbaenziger/oozie","description":"Mirror of Apache Oozie","fork":true,"url":"https://api.github.com/repos/cbaenziger/oozie","forks_url":"https://api.github.com/repos/cbaenziger/oozie/forks","keys_url":"https://api.github.com/repos/cbaenziger/oozie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbaenziger/oozie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbaenziger/oozie/teams","hooks_url":"https://api.github.com/repos/cbaenziger/oozie/hooks","issue_events_url":"https://api.github.com/repos/cbaenziger/oozie/issues/events{/number}","events_url":"https://api.github.com/repos/cbaenziger/oozie/events","assignees_url":"https://api.github.com/repos/cbaenziger/oozie/assignees{/user}","branches_url":"https://api.github.com/repos/cbaenziger/oozie/branches{/branch}","tags_url":"https://api.github.com/repos/cbaenziger/oozie/tags","blobs_url":"https://api.github.com/repos/cbaenziger/oozie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbaenziger/oozie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbaenziger/oozie/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbaenziger/oozie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbaenziger/oozie/statuses/{sha}","languages_url":"https://api.github.com/repos/cbaenziger/oozie/languages","stargazers_url":"https://api.github.com/repos/cbaenziger/oozie/stargazers","contributors_url":"https://api.github.com/repos/cbaenziger/oozie/contributors","subscribers_url":"https://api.github.com/repos/cbaenziger/oozie/subscribers","subscription_url":"https://api.github.com/repos/cbaenziger/oozie/subscription","commits_url":"https://api.github.com/repos/cbaenziger/oozie/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbaenziger/oozie/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbaenziger/oozie/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbaenziger/oozie/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbaenziger/oozie/contents/{+path}","compare_url":"https://api.github.com/repos/cbaenziger/oozie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbaenziger/oozie/merges","archive_url":"https://api.github.com/repos/cbaenziger/oozie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbaenziger/oozie/downloads","issues_url":"https://api.github.com/repos/cbaenziger/oozie/issues{/number}","pulls_url":"https://api.github.com/repos/cbaenziger/oozie/pulls{/number}","milestones_url":"https://api.github.com/repos/cbaenziger/oozie/milestones{/number}","notifications_url":"https://api.github.com/repos/cbaenziger/oozie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbaenziger/oozie/labels{/name}","releases_url":"https://api.github.com/repos/cbaenziger/oozie/releases{/id}","deployments_url":"https://api.github.com/repos/cbaenziger/oozie/deployments","created_at":"2018-04-19T00:26:55Z","updated_at":"2018-04-19T00:27:02Z","pushed_at":"2018-04-19T01:51:10Z","git_url":"git://github.com/cbaenziger/oozie.git","ssh_url":"git@github.com:cbaenziger/oozie.git","clone_url":"https://github.com/cbaenziger/oozie.git","svn_url":"https://github.com/cbaenziger/oozie","homepage":null,"size":24459,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"d55245667b259d858d4dded849ded001896ba2af","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":2383782,"name":"oozie","full_name":"apache/oozie","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/oozie","description":"Mirror of Apache Oozie","fork":false,"url":"https://api.github.com/repos/apache/oozie","forks_url":"https://api.github.com/repos/apache/oozie/forks","keys_url":"https://api.github.com/repos/apache/oozie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/oozie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/oozie/teams","hooks_url":"https://api.github.com/repos/apache/oozie/hooks","issue_events_url":"https://api.github.com/repos/apache/oozie/issues/events{/number}","events_url":"https://api.github.com/repos/apache/oozie/events","assignees_url":"https://api.github.com/repos/apache/oozie/assignees{/user}","branches_url":"https://api.github.com/repos/apache/oozie/branches{/branch}","tags_url":"https://api.github.com/repos/apache/oozie/tags","blobs_url":"https://api.github.com/repos/apache/oozie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/oozie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/oozie/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/oozie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/oozie/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/oozie/languages","stargazers_url":"https://api.github.com/repos/apache/oozie/stargazers","contributors_url":"https://api.github.com/repos/apache/oozie/contributors","subscribers_url":"https://api.github.com/repos/apache/oozie/subscribers","subscription_url":"https://api.github.com/repos/apache/oozie/subscription","commits_url":"https://api.github.com/repos/apache/oozie/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/oozie/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/oozie/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/oozie/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/oozie/contents/{+path}","compare_url":"https://api.github.com/repos/apache/oozie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/oozie/merges","archive_url":"https://api.github.com/repos/apache/oozie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/oozie/downloads","issues_url":"https://api.github.com/repos/apache/oozie/issues{/number}","pulls_url":"https://api.github.com/repos/apache/oozie/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/oozie/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/oozie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/oozie/labels{/name}","releases_url":"https://api.github.com/repos/apache/oozie/releases{/id}","deployments_url":"https://api.github.com/repos/apache/oozie/deployments","created_at":"2011-09-14T07:00:10Z","updated_at":"2018-04-17T18:13:46Z","pushed_at":"2018-04-19T01:51:12Z","git_url":"git://github.com/apache/oozie.git","ssh_url":"git@github.com:apache/oozie.git","clone_url":"https://github.com/apache/oozie.git","svn_url":"https://github.com/apache/oozie","homepage":null,"size":28518,"stargazers_count":378,"watchers_count":378,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":338,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":338,"open_issues":26,"watchers":378,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/oozie/pulls/37"},"html":{"href":"https://github.com/apache/oozie/pull/37"},"issue":{"href":"https://api.github.com/repos/apache/oozie/issues/37"},"comments":{"href":"https://api.github.com/repos/apache/oozie/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/oozie/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/oozie/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/oozie/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/apache/oozie/statuses/61a213ba6e59c728da0d9780c630309d4ebaa7f8"}},"author_association":"NONE"}}
{"actor":{"display_login":"cbaenziger"}}