You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ga...@apache.org on 2018/09/20 18:53:20 UTC

[flink] branch release-1.6 updated (953450d -> 3b1f495)

This is an automated email from the ASF dual-hosted git repository.

gary pushed a change to branch release-1.6
in repository https://gitbox.apache.org/repos/asf/flink.git.


    from 953450d  [hotfix] Bump docs version 1.6.0 -> 1.6.1
     new 1d36189  [hotfix][doc] Fix curl example in upload jar example
     new 3b1f495  [hotfix][docs] Regenerate docs to fix curl example for uploading jars.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/_includes/generated/rest_dispatcher.html                           | 2 +-
 .../org/apache/flink/runtime/webmonitor/handlers/JarUploadHeaders.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


[flink] 02/02: [hotfix][docs] Regenerate docs to fix curl example for uploading jars.

Posted by ga...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gary pushed a commit to branch release-1.6
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 3b1f495304c9393fc828c2cde6f3eef2fd5908c5
Author: gyao <ga...@data-artisans.com>
AuthorDate: Thu Sep 20 15:48:56 2018 +0200

    [hotfix][docs] Regenerate docs to fix curl example for uploading jars.
---
 docs/_includes/generated/rest_dispatcher.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/_includes/generated/rest_dispatcher.html b/docs/_includes/generated/rest_dispatcher.html
index ab0f4e0..cd05922 100644
--- a/docs/_includes/generated/rest_dispatcher.html
+++ b/docs/_includes/generated/rest_dispatcher.html
@@ -178,7 +178,7 @@
     </tr>
     <tr>
       <td colspan="2">Uploads a jar to the cluster. The jar must be sent as multi-part data. Make sure that the "Content-Type" header is set to "application/x-java-archive", as some http libraries do not add the header by default.
-Using 'curl' you can upload a jar via 'curl -X POST -H "Expect:" -F "jarfile=#path/to/flink-job.jar" http://hostname:port/jars/upload'.</td>
+Using 'curl' you can upload a jar via 'curl -X POST -H "Expect:" -F "jarfile=@path/to/flink-job.jar" http://hostname:port/jars/upload'.</td>
     </tr>
     <tr>
       <td colspan="2">


[flink] 01/02: [hotfix][doc] Fix curl example in upload jar example

Posted by ga...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gary pushed a commit to branch release-1.6
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 1d36189b18591c989496ae311eff0b1fafbe3ea5
Author: Sayat Satybaldiyev <sa...@gmail.com>
AuthorDate: Mon Sep 17 21:22:47 2018 +0200

    [hotfix][doc] Fix curl example in upload jar example
    
    This closes #6706.
---
 .../org/apache/flink/runtime/webmonitor/handlers/JarUploadHeaders.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarUploadHeaders.java b/flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarUploadHeaders.java
index d969b4fc..8b57359 100644
--- a/flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarUploadHeaders.java
+++ b/flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarUploadHeaders.java
@@ -73,7 +73,7 @@ public final class JarUploadHeaders implements MessageHeaders<EmptyRequestBody,
 	public String getDescription() {
 		return "Uploads a jar to the cluster. The jar must be sent as multi-part data. Make sure that the \"Content-Type\"" +
 			" header is set to \"application/x-java-archive\", as some http libraries do not add the header by default.\n" +
-			"Using 'curl' you can upload a jar via 'curl -X POST -H \"Expect:\" -F \"jarfile=#path/to/flink-job.jar\" http://hostname:port" + URL + "'.";
+			"Using 'curl' you can upload a jar via 'curl -X POST -H \"Expect:\" -F \"jarfile=@path/to/flink-job.jar\" http://hostname:port" + URL + "'.";
 	}
 
 	@Override