zhenlohuang opened a new issue, #2770:
URL: https://github.com/apache/incubator-kyuubi/issues/2770

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Describe the bug
   
   I followed settings.md and created log4j2.properties in $KYUUBI_HOME/conf. 
However, it didn't work at all. For example, I set `rootLogger.level = debug`, 
nothing happened. 
   
   The following is the content of log4j2.properties
   ```
   #
   # Licensed to the Apache Software Foundation (ASF) under one or more
   # contributor license agreements.  See the NOTICE file distributed with
   # this work for additional information regarding copyright ownership.
   # The ASF licenses this file to You under the Apache License, Version 2.0
   # (the "License"); you may not use this file except in compliance with
   # the License.  You may obtain a copy of the License at
   #
   #    http://www.apache.org/licenses/LICENSE-2.0
   #
   # Unless required by applicable law or agreed to in writing, software
   # distributed under the License is distributed on an "AS IS" BASIS,
   # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   # See the License for the specific language governing permissions and
   # limitations under the License.
   #
   
   # Set everything to be logged to the file
   rootLogger.level = debug
   rootLogger.appenderRef.stdout.ref = STDOUT
   
   # Console Appender
   appender.console.type = Console
   appender.console.name = STDOUT
   appender.console.target = SYSTEM_OUT
   appender.console.layout.type = PatternLayout
   appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} %p %c: %m%n
   
   appender.console.filter.1.type = Filters
   
   appender.console.filter.1.a.type = ThresholdFilter
   appender.console.filter.1.a.level = info
   
   # SPARK-34128: Suppress undesirable TTransportException warnings, due to 
THRIFT-4805
   appender.console.filter.1.b.type = RegexFilter
   appender.console.filter.1.b.regex = .*Thrift error occurred during 
processing of message.*
   appender.console.filter.1.b.onMatch = deny
   appender.console.filter.1.b.onMismatch = neutral
   
   # Reference: 
https://cloudera.ericlin.me/2017/09/no-data-or-no-sasl-data-in-the-stream-error-in-hiveserver2-log/
   appender.console.filter.1.c.type = RegexFilter
   appender.console.filter.1.c.regex = 
.*org.apache.thrift.server.TThreadPoolServer: Error occurred during processing 
of message.*.
   appender.console.filter.1.c.onMatch = deny
   appender.console.filter.1.c.onMismatch = neutral
   
   # Set the default kyuubi-ctl log level to WARN. When running the kyuubi-ctl, 
the
   # log level for this class is used to overwrite the root logger's log level.
   logger.ctl.name = org.apache.kyuubi.ctl.ServiceControlCli
   logger.ctl.level = error
   
   # Analysis MySQLFrontend protocol traffic
   # logger.mysql.name = org.apache.kyuubi.server.mysql.codec
   # logger.mysql.level = trace
   
   # Kyuubi BeeLine
   logger.beeline.name = org.apache.hive.beeline.KyuubiBeeLine
   logger.beeline.level = error
   ```
   
   ### Affects Version(s)
   
   master
   
   ### Kyuubi Server Log Output
   
   _No response_
   
   ### Kyuubi Engine Log Output
   
   _No response_
   
   ### Kyuubi Server Configurations
   
   _No response_
   
   ### Kyuubi Engine Configurations
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to