GitHub user ckadner opened a pull request:

    https://github.com/apache/bahir/pull/33

    [BAHIR-84] suppress "...INFO: org.apache.parquet.hadoop..." log messages 
from build log

    [BAHIR-84: Build log flooded with test log 
messages](https://issues.apache.org/jira/browse/BAHIR-84)
    
    **Proposed Changes**
    - [Parquet-MR 
(1.7.0)](https://github.com/apache/parquet-mr/blob/parquet-1.7.0/parquet-common/src/main/java/org/apache/parquet/Log.java)
 uses Java Logging, not Log4j, so we ...
    - add a new properties file: 
`sql-streaming-mqtt/src/test/resources/logging.properties`
    - increase the logger threshold for `org.apache.parquet.hadoop.*` to 
`SEVERE` 
    - add the the new `logging.properties` to the _maven-surefire-plugin_ and 
_scalatest-maven-plugin_ via the `java.util.logging.config.file` system property
    
    **How was this change tested?**
    - ran `mvn clean package`
    - quick test with `mvn clean test -pl sql-streaming-mqtt -q`
    
    **Result**
    ```
    $ mvn clean test -pl sql-streaming-mqtt -q
    
    -------------------------------------------------------
     T E S T S
    -------------------------------------------------------
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option 
MaxPermSize=512m; support was removed in 8.0
    
    Results :
    
    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
    
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option 
MaxPermSize=512m; support was removed in 8.0
    Discovery starting.
    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in 
[jar:file:/Users/ckadner/.m2/repository/org/slf4j/slf4j-log4j12/1.7.16/slf4j-log4j12-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in 
[jar:file:/Users/ckadner/.m2/repository/org/apache/activemq/activemq-all/5.13.3/activemq-all-5.13.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
explanation.
    SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
    Discovery completed in 323 milliseconds.
    Run starting. Expected test count is: 7
    BasicMQTTSourceSuite:
    - basic usage
    - Send and receive 100 messages.
    - no server up
    - params not provided.
    - Recovering offset from the last processed offset. !!! IGNORED !!!
    StressTestMQTTSource:
    - Send and receive messages of size 250MB. !!! IGNORED !!!
    LocalMessageStoreSuite:
    - serialize and deserialize
    - Store and retreive
    - Max offset stored
    MQTTStreamSourceSuite:
    Run completed in 21 seconds, 346 milliseconds.
    Total number of tests run: 7
    Suites: completed 5, aborted 0
    Tests: succeeded 7, failed 0, canceled 0, ignored 2, pending 0
    All tests passed.
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ckadner/bahir 
BAHIR-84_silence-parquet-hadoop-log-messages

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/bahir/pull/33.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #33
    
----
commit dceefb80b5f3c4947d63a6b075eda1ef402fdbc6
Author: Christian Kadner <[email protected]>
Date:   2017-01-12T08:07:02Z

    [BAHIR-84] suppress "... INFO: org.apache.parquet.hadoop..." log messages 
from maven build log

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to