I think it might be a bug that "kubernetes.flink.log.dir" could not take
effect. I have created a ticket[1].

Could you please try with "-Denv.log.dir=/var/log/containers"?

[1]. https://issues.apache.org/jira/browse/FLINK-24334

Best,
Yang

Guowei Ma <[email protected]> 于2021年9月14日周二 下午4:48写道:

> Hi
>
> Maybe you could try the `kubectl describe pod -n ${namespace} ${podname}`
> to see what happened atm.
>
> Best,
> Guowei
>
>
> On Tue, Sep 14, 2021 at 2:58 PM bat man <[email protected]> wrote:
>
>> Hello Guowei,
>>
>> The pods terminate almost within a second so am unable to pull any logs.
>> Is there any way I can pull the logs?
>>
>> Thanks,
>> Hemant
>>
>> On Tue, Sep 14, 2021 at 12:22 PM Guowei Ma <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> Could you share some logs when the job fails?
>>>
>>> Best,
>>> Guowei
>>>
>>>
>>> On Mon, Sep 13, 2021 at 10:59 PM bat man <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am running a POC to evaluate Flink on Native Kubernetes. I tried
>>>> changing the default log location by using the configuration -
>>>> kubernetes.flink.log.dir
>>>> However, the job in application mode fails after bringing up the task
>>>> manager. This is the command I use -
>>>>
>>>> ./bin/flink run-application --target kubernetes-application
>>>> -Dkubernetes.cluster-id=flink-k8s-poc-app
>>>> -Dkubernetes.container.image=<custom-image>
>>>> -Dkubernetes.flink.log.dir="/var/log/containers"
>>>> local:///opt/flink/usrlib/uber.jar
>>>>
>>>> Is there something else which needs to be done to write logs to a
>>>> different location like creating the folders in the custom image.
>>>>
>>>> Thanks.
>>>>
>>>

Reply via email to