Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SQL] [TEST] [MINOR] Uses a temporary log4j.properties in HiveThriftS…
…erver2Test to ensure expected logging behavior The `HiveThriftServer2Test` relies on proper logging behavior to assert whether the Thrift server daemon process is started successfully. However, some other jar files listed in the classpath may potentially contain an unexpected Log4J configuration file which overrides the logging behavior. This PR writes a temporary `log4j.properties` and prepend it to driver classpath before starting the testing Thrift server process to ensure proper logging behavior. cc andrewor14 yhuai Author: Cheng Lian <[email protected]> Closes #6493 from liancheng/override-log4j and squashes the following commits: c489e0e [Cheng Lian] Fixes minor Scala styling issue b46ef0d [Cheng Lian] Uses a temporary log4j.properties in HiveThriftServer2Test to ensure expected logging behavior
- Loading branch information
4782e13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liancheng @andrewor14 FYI I reverted this in branch 1.4 because it is using API's that don't exist in Java 6. I think they can be replaced easily with Guava:
4782e13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pwendell, this isn't necessary for branch-1.4. I'll update this one.
4782e13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liancheng I do intend to back port my test thing for branch-1.4, so this will be necessary later after the release