You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Guilherme Nobre <gu...@gmail.com> on 2018/06/21 16:42:12 UTC
How to set log level using Flink Docker Image
Hi everyone,
I have a Flink Cluster created from Flink's Docker Image. I'm trying to set
log level to DEBUG but couldn't find how. I know where logback
configuration files are as per documentation:
"The conf directory contains a logback.xml file which can be modified and
is used if Flink is started outside of an IDE."
However I'm not sure how to do that for a running Flink Cluster on
Kubernetes.
Thanks,
G
Re: How to set log level using Flink Docker Image
Posted by Guilherme Nobre <gu...@gmail.com>.
Thanks, that sounds reasonable. I'll try it out tomorrow :)
Cheers,
G
On Thu, Jun 21, 2018 at 6:56 PM Dominik Wosiński <wo...@gmail.com> wrote:
> You can for example mount the *conf* directory using docker volumes.
>
> You would need to have *logback.xml* and then mount it as *conf/logback.xml
> *inside the image. Locally You could do this using *docker-compose.yml*,
> for mounting volumes in kubernetes refer to this page:
> https://kubernetes.io/docs/concepts/storage/volumes/
>
> Regards.
>
> Czw., 21.06.2018, 18:42 użytkownik Guilherme Nobre <
> guilhermenobre2@gmail.com> napisał:
>
>> Hi everyone,
>>
>> I have a Flink Cluster created from Flink's Docker Image. I'm trying to
>> set log level to DEBUG but couldn't find how. I know where logback
>> configuration files are as per documentation:
>>
>> "The conf directory contains a logback.xml file which can be modified and
>> is used if Flink is started outside of an IDE."
>>
>> However I'm not sure how to do that for a running Flink Cluster on
>> Kubernetes.
>>
>> Thanks,
>> G
>>
>>
Re: How to set log level using Flink Docker Image
Posted by Dominik Wosiński <wo...@gmail.com>.
You can for example mount the *conf* directory using docker volumes.
You would need to have *logback.xml* and then mount it as *conf/logback.xml
*inside the image. Locally You could do this using *docker-compose.yml*,
for mounting volumes in kubernetes refer to this page:
https://kubernetes.io/docs/concepts/storage/volumes/
Regards.
Czw., 21.06.2018, 18:42 użytkownik Guilherme Nobre <
guilhermenobre2@gmail.com> napisał:
> Hi everyone,
>
> I have a Flink Cluster created from Flink's Docker Image. I'm trying to
> set log level to DEBUG but couldn't find how. I know where logback
> configuration files are as per documentation:
>
> "The conf directory contains a logback.xml file which can be modified and
> is used if Flink is started outside of an IDE."
>
> However I'm not sure how to do that for a running Flink Cluster on
> Kubernetes.
>
> Thanks,
> G
>
>