Support Questions

Find answers, ask questions, and share your expertise

Knox 0.6 log file issue

avatar
Explorer

Hi, the gateway.log & gateway-audit.log is not getting updated after a while, however the log file timestamp is updated.

I had to manually start the gateway and run the following command to get the logging, starting from Ambari didn't work.

java -jar bin/gateway.jar > gateway.log

Let me know what is causing this issue.

1 ACCEPTED SOLUTION

avatar
Explorer

No, I am running 5 node basic cluster with only one instance of gateway. Here are more details about the issue

# ls -ltr total 8

-rw-r----- 1 knox hadoop 4096 May 12 13:23 gateway.log

-rw-r----- 1 knox hadoop 4096 May 12 13:23 gateway-audit.log

tail -2 gateway-audit.log

16/05/12 11:08:10 ||8c0e145f-a495-470b-918a-9ca1da7228ab|audit|HIVE|guest|knox||access|uri|/gateway/default/hive|success|Response status: 200 16/05/12 11:08:10 ||aa48685f-c5bf-4340-bc53-50cf332b

gateway-audit.log timestamp updated (13:23), however log file stopped updating after 11:08:10 (the log statement cut off as well). Same issue with gateway.log

# tail -2 gateway.log (log statement cut off: certificate is valid between: 4/)

2016-05-12 09:14:37,205 INFO hadoop.gateway (JettySSLService.java:logAndValidateCertificate(125)) - The Gateway SSL certificate is issued to hostname: XXXXX. 2016-05-12 09:14:37,207 INFO hadoop.gateway (JettySSLService.java:logAndValidateCertificate(128)) - The Gateway SSL certificate is valid between: 4/

View solution in original post

4 REPLIES 4

avatar
Expert Contributor

This seems really odd. Would you happen to have multiple instances of Knox gateway running behind a load-balancer?

avatar
Explorer

Hi Lmccay, I added more details about the issue below. This morning too the log statement was cut off and then stopped updating the log.

avatar
Explorer

No, I am running 5 node basic cluster with only one instance of gateway. Here are more details about the issue

# ls -ltr total 8

-rw-r----- 1 knox hadoop 4096 May 12 13:23 gateway.log

-rw-r----- 1 knox hadoop 4096 May 12 13:23 gateway-audit.log

tail -2 gateway-audit.log

16/05/12 11:08:10 ||8c0e145f-a495-470b-918a-9ca1da7228ab|audit|HIVE|guest|knox||access|uri|/gateway/default/hive|success|Response status: 200 16/05/12 11:08:10 ||aa48685f-c5bf-4340-bc53-50cf332b

gateway-audit.log timestamp updated (13:23), however log file stopped updating after 11:08:10 (the log statement cut off as well). Same issue with gateway.log

# tail -2 gateway.log (log statement cut off: certificate is valid between: 4/)

2016-05-12 09:14:37,205 INFO hadoop.gateway (JettySSLService.java:logAndValidateCertificate(125)) - The Gateway SSL certificate is issued to hostname: XXXXX. 2016-05-12 09:14:37,207 INFO hadoop.gateway (JettySSLService.java:logAndValidateCertificate(128)) - The Gateway SSL certificate is valid between: 4/

avatar
Explorer

The issue is resolved after freeing up the disk space.