-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-28417: Bump Log4j2 to 2.24.1 to facilitate compilation of GraalVM Native Image #5375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,9 +14,7 @@ | |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| status = INFO | ||
| name = HiveLog4j2Test | ||
| packages = org.apache.hadoop.hive.ql.log | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this changed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
2024-08-02T10:55:16.634Z main WARN The use of package scanning to locate plugins is deprecated and will be removed in a future release
2024-08-02T10:55:16.650Z main WARN The use of package scanning to locate plugins is deprecated and will be removed in a future release
2024-08-02T10:55:16.670Z main WARN The use of package scanning to locate plugins is deprecated and will be removed in a future release
2024-08-02T10:55:16.686Z main WARN The use of package scanning to locate plugins is deprecated and will be removed in a future releaseThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
How we replace There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<executions>
<execution>
<id>generate-log4j-plugin-descriptor</id>
<goals>
<goal>compile</goal>
</goals>
<phase>process-classes</phase>
<configuration>
<proc>only</proc>
<annotationProcessorPaths>
<path>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.24.1</version>
</path>
</annotationProcessorPaths>
<annotationProcessors>
<processor>org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor</processor>
</annotationProcessors>
</configuration>
</execution>
</executions>
</plugin>
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good explanation!
BTW, if Hive wants to use JDK23 or JDK24, should we need to register the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| # list of properties | ||
| property.hive.log.level = DEBUG | ||
|
|
@@ -25,9 +23,6 @@ property.hive.log.dir = ${sys:test.tmp.dir}/log | |
| property.hive.log.file = hive.log | ||
| property.hive.test.console.log.level = INFO | ||
|
|
||
| # list of all appenders | ||
| appenders = console, DRFA | ||
zhangbutao marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # console appender | ||
| appender.console.type = Console | ||
| appender.console.name = console | ||
|
|
@@ -49,9 +44,6 @@ appender.DRFA.policies.time.modulate = true | |
| appender.DRFA.strategy.type = DefaultRolloverStrategy | ||
| appender.DRFA.strategy.max = 30 | ||
|
|
||
| # list of all loggers | ||
| loggers = HadoopIPC, HadoopSecurity, Hdfs, HdfsServer, HadoopMetrics2, Mortbay, Yarn, YarnServer, Tez, HadoopConf, Zookeeper, ServerCnxn, NIOServerCnxn, ClientCnxn, ClientCnxnSocket, ClientCnxnSocketNIO, DataNucleus, Datastore, JPOX, Operator, Serde2Lazy, ObjectStore, CalcitePlanner, AmazonAws, ApacheHttp, Thrift, Jetty, BlockStateChange, swo, CBORuleLogger | ||
linghengqian marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| logger.HadoopIPC.name = org.apache.hadoop.ipc | ||
| logger.HadoopIPC.level = WARN | ||
|
|
||
|
|
@@ -128,7 +120,7 @@ logger.CBORuleLogger.filter.marker.type = MarkerFilter | |
| logger.CBORuleLogger.filter.marker.marker = FULL_PLAN | ||
| # Change filter to ACCEPT, to see the produced plan after every rule invocation using the EXPLAIN CBO format | ||
| logger.CBORuleLogger.filter.marker.onMatch = DENY | ||
| logger.CBORuleLogger.filter.marker.onMisMatch = NEUTRAL | ||
| logger.CBORuleLogger.filter.marker.onMismatch = NEUTRAL | ||
|
|
||
| logger.AmazonAws.name=com.amazonaws | ||
| logger.AmazonAws.level = INFO | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.