You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/09/30 22:53:13 UTC
[GitHub] [flink] liuml07 opened a new pull request, #20935: [hotfix][doc] Make referencing custom image clearer for Docker
liuml07 opened a new pull request, #20935:
URL: https://github.com/apache/flink/pull/20935
## What is the purpose of the change
Make referencing custom image clearer for Docker
## Brief change log
hotfix
## Verifying this change
Please make sure both new and modified tests in this PR follows the conventions defined in our code quality guide: https://flink.apache.org/contributing/code-style-and-quality-common.html#testing
This change is a trivial rework / code cleanup without any test coverage.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (yes / **no**)
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / **no**)
- The serializers: (yes / **no** / don't know)
- The runtime per-record code paths (performance sensitive): (yes / **no** / don't know)
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / **no** / don't know)
- The S3 file system connector: (yes / **no** / don't know)
## Documentation
- Does this pull request introduce a new feature? (yes / **no**)
- If yes, how is the feature documented? (**not applicable** / docs / JavaDocs / not documented)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] liuml07 commented on pull request #20935: [hotfix][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
liuml07 commented on PR #20935:
URL: https://github.com/apache/flink/pull/20935#issuecomment-1264113384
CC @knaufk @MartijnVisser
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] MartijnVisser commented on a diff in pull request #20935: [hotfix][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
MartijnVisser commented on code in PR #20935:
URL: https://github.com/apache/flink/pull/20935#discussion_r1006769024
##########
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md:
##########
@@ -406,15 +406,15 @@ services:
You can then start creating tables and queries those.
* Note, that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
- For example, if you would like to use the Kafka Connector create a custom image with the following Dockerfile
+ For example, if you would like to use the Kafka Connector, you can build a custom image.
+ Create a Dockerfile as follows:
Review Comment:
```suggestion
For example, if you would like to use the Kafka Connector, you need to build a custom image.
Create a Dockerfile containing:
```
##########
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md:
##########
@@ -406,15 +406,15 @@ services:
You can then start creating tables and queries those.
* Note, that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
- For example, if you would like to use the Kafka Connector create a custom image with the following Dockerfile
+ For example, if you would like to use the Kafka Connector, you can build a custom image.
+ Create a Dockerfile as follows:
```Dockerfile
FROM flink:{{< stable >}}{{< version >}}-scala{{< scala_version >}}{{< /stable >}}{{< unstable >}}latest{{< /unstable >}}
RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka_2.12/{{< version >}}/flink-sql-connector-kafka_scala{{< scala_version >}}-{{< version >}}.jar
```
- and reference it (e.g via the `build`) command in the Dockerfile.
- and reference it (e.g via the `build`) command in the Dockerfile.
+ and reference this Dockerfile with the `build` command in the `docker-compose.yml` file.
Review Comment:
Perhaps it better to actually display the `build` command that someone needs to type?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] MartijnVisser commented on pull request #20935: [FLINK-29961][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
MartijnVisser commented on PR #20935:
URL: https://github.com/apache/flink/pull/20935#issuecomment-1313892556
> You probably didn’t mean to mention me? ;) @MartijnVisser
I honestly don't know how that happened but indeed, I didn't mean to tag you, apologies 😅
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] liuml07 commented on a diff in pull request #20935: [hotfix][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
liuml07 commented on code in PR #20935:
URL: https://github.com/apache/flink/pull/20935#discussion_r1007632470
##########
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md:
##########
@@ -406,15 +406,15 @@ services:
You can then start creating tables and queries those.
* Note, that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
- For example, if you would like to use the Kafka Connector create a custom image with the following Dockerfile
+ For example, if you would like to use the Kafka Connector, you can build a custom image.
+ Create a Dockerfile as follows:
```Dockerfile
FROM flink:{{< stable >}}{{< version >}}-scala{{< scala_version >}}{{< /stable >}}{{< unstable >}}latest{{< /unstable >}}
RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka_2.12/{{< version >}}/flink-sql-connector-kafka_scala{{< scala_version >}}-{{< version >}}.jar
```
- and reference it (e.g via the `build`) command in the Dockerfile.
- and reference it (e.g via the `build`) command in the Dockerfile.
+ and reference this Dockerfile with the `build` command in the `docker-compose.yml` file.
Review Comment:
Updated the doc. After building the doc screenshot is like:
<img width="1068" alt="Screenshot 2022-10-27 at 10 12 43 PM" src="https://user-images.githubusercontent.com/159186/198507938-d68b6ee6-c642-48cc-8baa-5f125c210109.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] roncohen commented on pull request #20935: [FLINK-29961][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
roncohen commented on PR #20935:
URL: https://github.com/apache/flink/pull/20935#issuecomment-1313872281
You probably didn’t mean to mention me? ;) @MartijnVisser
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #20935: [hotfix][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
flinkbot commented on PR #20935:
URL: https://github.com/apache/flink/pull/20935#issuecomment-1264115737
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "03bf998619ad1f5ceae2eb1c067a27837c7b0b37",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "03bf998619ad1f5ceae2eb1c067a27837c7b0b37",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 03bf998619ad1f5ceae2eb1c067a27837c7b0b37 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] liuml07 commented on a diff in pull request #20935: [hotfix][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
liuml07 commented on code in PR #20935:
URL: https://github.com/apache/flink/pull/20935#discussion_r1007632470
##########
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md:
##########
@@ -406,15 +406,15 @@ services:
You can then start creating tables and queries those.
* Note, that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
- For example, if you would like to use the Kafka Connector create a custom image with the following Dockerfile
+ For example, if you would like to use the Kafka Connector, you can build a custom image.
+ Create a Dockerfile as follows:
```Dockerfile
FROM flink:{{< stable >}}{{< version >}}-scala{{< scala_version >}}{{< /stable >}}{{< unstable >}}latest{{< /unstable >}}
RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka_2.12/{{< version >}}/flink-sql-connector-kafka_scala{{< scala_version >}}-{{< version >}}.jar
```
- and reference it (e.g via the `build`) command in the Dockerfile.
- and reference it (e.g via the `build`) command in the Dockerfile.
+ and reference this Dockerfile with the `build` command in the `docker-compose.yml` file.
Review Comment:
Updated the doc. After building the doc screenshot is like:
<img width="1068" alt="Screenshot 2022-10-27 at 10 20 50 PM" src="https://user-images.githubusercontent.com/159186/198509170-969dc74b-4df4-4a80-a2ca-d0fa6be7dca1.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] liuml07 commented on a diff in pull request #20935: [FLINK-29961][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
liuml07 commented on code in PR #20935:
URL: https://github.com/apache/flink/pull/20935#discussion_r1022040612
##########
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md:
##########
@@ -405,16 +405,24 @@ services:
```
You can then start creating tables and queries those.
-* Note, that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
- For example, if you would like to use the Kafka Connector create a custom image with the following Dockerfile
+* Note that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
+ For example, if you would like to add and use the SQL Kafka Connector, you need to build a custom image.
+ 1. Create a Dockerfile named `Kafka.Dockerfile` as follows:
```Dockerfile
FROM flink:{{< stable >}}{{< version >}}-scala{{< scala_version >}}{{< /stable >}}{{< unstable >}}latest{{< /unstable >}}
- RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka_2.12/{{< version >}}/flink-sql-connector-kafka_scala{{< scala_version >}}-{{< version >}}.jar
+ RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/{{< version >}}/flink-sql-connector-kafka_scala-{{< version >}}.jar
Review Comment:
I found the Kafka connector is not including Scala version in the name. So I updated this as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-29961][doc] Make referencing custom image clearer for Docker [flink]
Posted by "liuml07 (via GitHub)" <gi...@apache.org>.
liuml07 closed pull request #20935: [FLINK-29961][doc] Make referencing custom image clearer for Docker
URL: https://github.com/apache/flink/pull/20935
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] liuml07 commented on pull request #20935: [FLINK-29961][doc] Make referencing custom image clearer for Docker
Posted by "liuml07 (via GitHub)" <gi...@apache.org>.
liuml07 commented on PR #20935:
URL: https://github.com/apache/flink/pull/20935#issuecomment-1535210299
Hi @MartijnVisser could you take another look? Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] MartijnVisser commented on a diff in pull request #20935: [FLINK-29961][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
MartijnVisser commented on code in PR #20935:
URL: https://github.com/apache/flink/pull/20935#discussion_r1009135908
##########
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md:
##########
@@ -405,16 +405,24 @@ services:
```
You can then start creating tables and queries those.
-* Note, that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
- For example, if you would like to use the Kafka Connector create a custom image with the following Dockerfile
+* Note that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
+ For example, if you would like to use the Kafka Connector, you can build a custom image.
+ 1. Create a Dockerfile named `Dockerfile.kafka` as follows:
Review Comment:
I would prefer to have `.Dockerfile` as the extension.
```suggestion
1. Create a Dockerfile named `Kafka.Dockerfile` as follows:
```
##########
docs/content.zh/docs/deployment/resource-providers/standalone/docker.md:
##########
@@ -405,16 +405,24 @@ services:
```
You can then start creating tables and queries those.
-* Note, that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
- For example, if you would like to use the Kafka Connector create a custom image with the following Dockerfile
+* Note that all required dependencies (e.g. for connectors) need to be available in the cluster as well as the client.
+ For example, if you would like to use the Kafka Connector, you can build a custom image.
Review Comment:
```suggestion
For example, if you would like to add and use the SQL Kafka Connector, you need to build a custom image.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] liuml07 commented on pull request #20935: [FLINK-29961][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
liuml07 commented on PR #20935:
URL: https://github.com/apache/flink/pull/20935#issuecomment-1309120781
This was a hotfix PR but since the latest change introduces some example code, I created a JIRA for it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] MartijnVisser commented on pull request #20935: [FLINK-29961][doc] Make referencing custom image clearer for Docker
Posted by GitBox <gi...@apache.org>.
MartijnVisser commented on PR #20935:
URL: https://github.com/apache/flink/pull/20935#issuecomment-1313893179
@liuml07 Can you take my suggested changes into account?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org