Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 05-12-2016 06:16 PM
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.logLet me know what is causing this issue.
Created 05-12-2016 08:32 PM
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/
Created 05-12-2016 06:19 PM
This seems really odd. Would you happen to have multiple instances of Knox gateway running behind a load-balancer?
Created 05-13-2016 06:16 PM
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.
Created 05-12-2016 08:32 PM
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/
Created 05-17-2016 01:40 PM
The issue is resolved after freeing up the disk space.