Reduce parquet logging in Hive tests
@@ -38,6 +38,7 @@ import java.util.Optional;
import static com.facebook.presto.testing.TestingSession.testSessionBuilder;
import static com.facebook.presto.tests.QueryAssertions.copyTpchTables;
import static com.facebook.presto.tpch.TpchMetadata.TINY_SCHEMA_NAME;
+import static io.airlift.log.Level.WARN;
import static io.airlift.units.Duration.nanosSince;
import static java.lang.String.format;
import static java.util.Locale.ENGLISH;
@@ -80,6 +81,7 @@ public final class HiveQueryRunner
throws Exception
{
assertEquals(DateTimeZone.getDefault(), TIME_ZONE, "Timezone not configured correctly. Add -Duser.timezone=America/Bahia_Banderas to your JVM arguments");
+ setupLogging();
DistributedQueryRunner queryRunner =
DistributedQueryRunner.builder(createSession())
@@ -137,6 +139,12 @@ public final class HiveQueryRunner
}
}
+ private static void setupLogging()
+ {
+ Logging logging = Logging.initialize();
+ logging.setLevel("org.apache.parquet.hadoop", WARN);
+ }
+
private static Database createDatabaseMetastoreObject(String name)
{
return Database.builder()
