flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmetz...@apache.org
Subject flink git commit: [hotfix][doc] Add note on how to use custom loggers with a per-job-yarn cluster
Date Mon, 08 Feb 2016 14:38:04 GMT
Repository: flink
Updated Branches:
  refs/heads/master ba13caa1b -> 22423e23f


[hotfix][doc] Add note on how to use custom loggers with a per-job-yarn cluster


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/22423e23
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/22423e23
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/22423e23

Branch: refs/heads/master
Commit: 22423e23f1c8b659de65aeb690c673cee189025b
Parents: ba13caa
Author: Robert Metzger <rmetzger@apache.org>
Authored: Mon Feb 8 14:39:51 2016 +0100
Committer: Robert Metzger <rmetzger@apache.org>
Committed: Mon Feb 8 15:32:01 2016 +0100

----------------------------------------------------------------------
 docs/_local_preview_conf.yml | 19 +++++++++++++++++++
 docs/apis/best_practices.md  |  6 +++++-
 docs/build_docs.sh           |  2 +-
 3 files changed, 25 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/22423e23/docs/_local_preview_conf.yml
----------------------------------------------------------------------
diff --git a/docs/_local_preview_conf.yml b/docs/_local_preview_conf.yml
new file mode 100644
index 0000000..82841aa
--- /dev/null
+++ b/docs/_local_preview_conf.yml
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# We unset the baseurl for local testing
+baseurl: ""

http://git-wip-us.apache.org/repos/asf/flink/blob/22423e23/docs/apis/best_practices.md
----------------------------------------------------------------------
diff --git a/docs/apis/best_practices.md b/docs/apis/best_practices.md
index 5195db2..4d911dd 100644
--- a/docs/apis/best_practices.md
+++ b/docs/apis/best_practices.md
@@ -279,7 +279,7 @@ Apache Flink is using [slf4j](http://www.slf4j.org/) as the logging abstraction
 
 Sfl4j is a compile-time logging interface that can use different logging implementations
at runtime, such as [log4j](http://logging.apache.org/log4j/2.x/) or [Logback](http://logback.qos.ch/).
 
-Flink is depending on Log4j by default. This page describes how to use Flink with Logback.
+Flink is depending on Log4j by default. This page describes how to use Flink with Logback.
Users reported that they were also able to set up centralized logging with Graylog using this
tutorial.
 
 To get a logger instance in the code, use the following code:
 
@@ -397,3 +397,7 @@ Next, you need to put the following jar files into the `lib/` folder:
  * `logback-classic.jar`
  * `logback-core.jar`
  * `log4j-over-slf4j.jar`: This bridge needs to be present in the classpath for redirecting
logging calls from Hadoop (which is using Log4j) to Slf4j.
+
+Note that you need to explicitly set the `lib/` directory when using a per job YARN cluster.
+
+The command to submit Flink on YARN with a custom logger is: `./bin/flink run -yt $FLINK_HOME/lib
<... remaining arguments ...>`

http://git-wip-us.apache.org/repos/asf/flink/blob/22423e23/docs/build_docs.sh
----------------------------------------------------------------------
diff --git a/docs/build_docs.sh b/docs/build_docs.sh
index b65f7c9..cf71b13 100755
--- a/docs/build_docs.sh
+++ b/docs/build_docs.sh
@@ -54,7 +54,7 @@ JEKYLL_CMD="build"
 while getopts ":p" opt; do
 	case $opt in
 		p)
-		JEKYLL_CMD="serve --baseurl "" --watch"
+		JEKYLL_CMD="serve --config _config.yml,_local_preview_conf.yml --watch"
 		;;
 	esac
 done


Mime
View raw message