提交 8b34d21e 编写于 作者: M Maximilian Michels

[docs] add Scala suffix for Maven artifact names

上级 48fa72a9
......@@ -30,6 +30,9 @@ version: "1.0-SNAPSHOT"
version_hadoop1: "1.0-hadoop1-SNAPSHOT"
version_short: "1.0" # Used for the top navbar w/o snapshot suffix
# This suffix is appended to the Scala-dependent Maven artifact names
scala_version_suffix: "_2.10"
# Some commonly linked pages (this was more important to have as a variable
# during incubator; by now it should also be fine to hardcode these.)
website_url: "http://flink.apache.org"
......
......@@ -60,7 +60,7 @@ and Reducers.
~~~xml
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-hadoop-compatibility</artifactId>
<artifactId>flink-hadoop-compatibility{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version}}</version>
</dependency>
~~~
......
......@@ -161,7 +161,7 @@ If you want to add Flink to an existing Maven project, add the following entry t
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<artifactId>flink-clients{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......@@ -170,12 +170,12 @@ If you want to add Flink to an existing Maven project, add the following entry t
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-scala</artifactId>
<artifactId>flink-scala{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<artifactId>flink-clients{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......
......@@ -108,4 +108,4 @@ env.execute()
will yield the tuples: (0,A), (2,B), (4,C), (6,D), (8,E), (10,F)
[Back to top](#top)
\ No newline at end of file
[Back to top](#top)
......@@ -342,7 +342,7 @@ Change your projects `pom.xml` file like this:
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java</artifactId>
<artifactId>flink-streaming-java{{ site.scala_version_suffix }}</artifactId>
<version>{{ site.version }}</version>
<exclusions>
<exclusion>
......@@ -357,7 +357,7 @@ Change your projects `pom.xml` file like this:
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<artifactId>flink-clients{{ site.scala_version_suffix }}</artifactId>
<version>{{ site.version }}</version>
<exclusions>
<exclusion>
......
......@@ -51,7 +51,7 @@ If you are developing your program as a Maven project, you have to add the
~~~xml
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<artifactId>flink-clients{{ site.scala_version_suffix }}</artifactId>
<version>{{ site.version }}</version>
</dependency>
~~~
......
......@@ -159,7 +159,7 @@ Execute the following commands:
~~~xml
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-hadoop-compatibility</artifactId>
<artifactId>flink-hadoop-compatibility{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version}}</version>
</dependency>
<dependency>
......
......@@ -156,7 +156,7 @@ Execute the following commands:
~~~xml
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-hadoop-compatibility</artifactId>
<artifactId>flink-hadoop-compatibility{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version}}</version>
</dependency>
<dependency>
......
......@@ -47,7 +47,7 @@ If you are developing your program in a Maven project, you have to add the `flin
~~~xml
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<artifactId>flink-clients{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version}}</version>
</dependency>
~~~
......
......@@ -33,7 +33,7 @@ following dependency to your project:
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-elasticsearch</artifactId>
<artifactId>flink-connector-elasticsearch{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......
......@@ -33,7 +33,7 @@ following dependency to your project:
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-filesystem</artifactId>
<artifactId>flink-connector-filesystem{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version}}</version>
</dependency>
{% endhighlight %}
......
......@@ -57,7 +57,7 @@ For most users, the `FlinkKafkaConsumer08` (part of `flink-connector-kafka`) is
<td>Uses the <a href="https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+SimpleConsumer+Example">SimpleConsumer</a> API of Kafka internally. Offsets are committed to ZK by Flink.</td>
</tr>
<tr>
<td>flink-connector-kafka-0.8</td>
<td>flink-connector-kafka-0.8{{ site.scala_version_suffix }}</td>
<td>1.0.0</td>
<td>FlinkKafkaConsumer08<br>
FlinkKafkaProducer08</td>
......@@ -65,7 +65,7 @@ For most users, the `FlinkKafkaConsumer08` (part of `flink-connector-kafka`) is
<td>Uses the <a href="https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+SimpleConsumer+Example">SimpleConsumer</a> API of Kafka internally. Offsets are committed to ZK by Flink.</td>
</tr>
<tr>
<td>flink-connector-kafka-0.9</td>
<td>flink-connector-kafka-0.9{{ site.scala_version_suffix }}</td>
<td>1.0.0</td>
<td>FlinkKafkaConsumer09<br>
FlinkKafkaProducer09</td>
......@@ -80,7 +80,7 @@ Then, import the connector in your maven project:
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-kafka-0.8</artifactId>
<artifactId>flink-connector-kafka-0.8{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......@@ -202,4 +202,4 @@ stream.addSink(new FlinkKafkaProducer08[String]("localhost:9092", "my-topic", ne
You can also define a custom Kafka producer configuration for the KafkaSink with the constructor. Please refer to
the [Apache Kafka documentation](https://kafka.apache.org/documentation.html) for details on how to configure
Kafka Producers.
\ No newline at end of file
Kafka Producers.
......@@ -31,7 +31,7 @@ This connector provides access to data streams from [RabbitMQ](http://www.rabbit
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-rabbitmq</artifactId>
<artifactId>flink-connector-rabbitmq{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......@@ -117,4 +117,4 @@ stream.addSink(new RMQSink[String]("localhost", "hello", new StringToByteSeriali
</div>
</div>
More about RabbitMQ can be found [here](http://www.rabbitmq.com/).
\ No newline at end of file
More about RabbitMQ can be found [here](http://www.rabbitmq.com/).
......@@ -31,7 +31,7 @@ Twitter Streaming API provides opportunity to connect to the stream of tweets ma
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-twitter</artifactId>
<artifactId>flink-connector-twitter{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......
......@@ -179,12 +179,12 @@ If you want to add Flink to an existing Maven project, add the following entry t
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java</artifactId>
<artifactId>flink-streaming-java{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<artifactId>flink-clients{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......@@ -193,12 +193,12 @@ If you want to add Flink to an existing Maven project, add the following entry t
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-scala</artifactId>
<artifactId>flink-streaming-scala{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<artifactId>flink-clients{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......
......@@ -46,7 +46,7 @@ Add the following dependency to your `pom.xml` if you want to execute Storm code
~~~xml
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-storm</artifactId>
<artifactId>flink-storm{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version}}</version>
</dependency>
~~~
......
......@@ -18,4 +18,4 @@ software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
\ No newline at end of file
-->
......@@ -46,7 +46,7 @@ Add the following dependency to your `pom.xml` to use Gelly.
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-gelly</artifactId>
<artifactId>flink-gelly{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version}}</version>
</dependency>
{% endhighlight %}
......@@ -55,7 +55,7 @@ Add the following dependency to your `pom.xml` to use Gelly.
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-gelly-scala</artifactId>
<artifactId>flink-gelly-scala{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version}}</version>
</dependency>
{% endhighlight %}
......
......@@ -74,7 +74,7 @@ Next, you have to add the FlinkML dependency to the `pom.xml` of your project.
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-ml</artifactId>
<artifactId>flink-ml{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......
......@@ -62,7 +62,7 @@ Next, you have to add the FlinkML dependency to the `pom.xml` of your project:
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-ml</artifactId>
<artifactId>flink-ml{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......
......@@ -41,7 +41,7 @@ The following dependency must be added to your project when using the Table API:
{% highlight xml %}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table</artifactId>
<artifactId>flink-table{{ site.scala_version_suffix }}</artifactId>
<version>{{site.version }}</version>
</dependency>
{% endhighlight %}
......
......@@ -155,4 +155,4 @@ You can easily deploy Flink on your existing __YARN cluster__.
2. Make sure your __HADOOP_HOME__ (or _YARN_CONF_DIR_ or _HADOOP_CONF_DIR_) __environment variable__ is set to read your YARN and HDFS configuration.
3. Run the __YARN client__ with: `./bin/yarn-session.sh`. You can run the client with options `-n 10 -tm 8192` to allocate 10 TaskManagers with 8GB of memory each.
For __more detailed instructions__, check out the programming Guides and examples.
\ No newline at end of file
For __more detailed instructions__, check out the programming Guides and examples.
......@@ -32,4 +32,4 @@ under the License.
})();
</script>
<gcse:searchresults-only></gcse:searchresults-only>
\ No newline at end of file
<gcse:searchresults-only></gcse:searchresults-only>
......@@ -18,4 +18,4 @@ software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
\ No newline at end of file
-->
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册