Andrew Wong has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/15525 )

Change subject: [ranger] allow subprocess to log to a file
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/15525/2/java/kudu-subprocess/src/main/resources/log4j2.properties
File java/kudu-subprocess/src/main/resources/log4j2.properties:

PS2:
> As it is under resources dir it will be compiled as part of the jar.
If this exists, any idea why running subproces_proxy-test doesn't output any 
logs _unless_ I add an explicit BasicConfigurator.configure() call in the Java 
subprocess (see SubprocessConfiguration.java:192)?

All I see is:

I0330 21:19:53.886292 146833408 server.cc:316] get failed, inbound queue shut 
down: Aborted:
log4j:WARN No appenders could be found for logger 
(org.apache.kudu.subprocess.QueueUtil).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.
log4j:WARN No appenders could be found for logger 
(org.apache.kudu.subprocess.QueueUtil).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.
I0330 21:19:57.436334 147906560 server.cc:246] Received an EOF from the 
subprocess

without the basic config vs

I0330 21:21:02.579736 88375296 server.cc:316] get failed, inbound queue shut 
down: Aborted:
0 [pool-2-thread-1] DEBUG org.apache.kudu.subprocess.QueueUtil  - Message: 
org.apache.kudu.subprocess.InboundRequest@1aed0e0a has been taken from the queue
0 [pool-1-thread-1] DEBUG org.apache.kudu.subprocess.QueueUtil  - Message: 
org.apache.kudu.subprocess.InboundRequest@1aed0e0a has been put on the queue
2088 [pool-2-thread-1] DEBUG org.apache.kudu.subprocess.QueueUtil  - Message: 
org.apache.kudu.subprocess.OutboundResponse@372dec43 has been put on the queue
2089 [pool-3-thread-1] DEBUG org.apache.kudu.subprocess.QueueUtil  - Message: 
org.apache.kudu.subprocess.OutboundResponse@372dec43 has been taken from the 
queue
I0330 21:21:06.134639 89985024 server.cc:246] Received an EOF from the 
subprocess

with it.


http://gerrit.cloudera.org:8080/#/c/15525/2/java/kudu-subprocess/src/main/resources/log4j2.properties@24
PS2, Line 24: logs/subprocess.log
> If I understand correctly, this will be under the subprocess's current work
What is that in the common case of running a kudu-master?



--
To view, visit http://gerrit.cloudera.org:8080/15525
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3e0c64a05ff936044807df7efc698569f494f0e7
Gerrit-Change-Number: 15525
Gerrit-PatchSet: 2
Gerrit-Owner: Hao Hao <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Attila Bukor <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Hao Hao <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Tue, 31 Mar 2020 04:23:01 +0000
Gerrit-HasComments: Yes

Reply via email to