- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Knox 0.6 log file issue
- Labels:
-
Apache Knox
Created ‎05-12-2016 06:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎05-12-2016 08:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The issue is resolved after freeing up the disk space.
