what is the way to find out why certain map task f...
# ask-the-community
a
what is the way to find out why certain map task fails? also is the only way to check what input it ran against is to switch between map_exec and input tabs in deck?
j
do you have a logging setup for your cluster? we have a stackdriver logging and each map task elemnets will generate separate log links for you so you can probe why individual task has failed
a
i do and i see logiles in cloudwatch but there is nothing in console
also when tasks error out - there is nothing in logiles
i see my own application logging in logs but when error happens
image.png
this text in the middle - it is nowhere in the logs
j
i see, i think map task might need different wiring
d
Might want to look into logging for maptasks, they require separate configuration. However, ArrayNode uses the same logging as regular Flyte tasks.
a
is there a sample config I can find somewhere?
this thread is old so dont open for me
d
Yeah, so the logs should be something like:
Copy code
plugins:
  k8s-array:
    logs:
      kubernetes-enabled: true
      kubernetes-url: "<http://localhost:30082>"      
  logs:
    kubernetes-enabled: true
    kubernetes-url: "<http://localhost:30082>"
where the log configuration for the
k8s-array
element should be identical to the regular
logs
configuration.
a
thx - should this sit on the same level as k8s config? i.e. configuration > inline> plugins?
and i dont have regular logs: i have it under logging:.....