如何使spark log4j中的特定日志静音

时间:2017-12-20 06:42:47

标签: apache-spark logging log4j

如何在火花log4j.properties

中专门使以下日志静音
17/12/20 07:39:56 INFO Persistence: Property hive.metastore.integral.jdo.pushdown unknown - will be ignored
17/12/20 07:39:56 INFO Persistence: Property datanucleus.cache.level2 unknown - will be ignored
17/12/20 07:39:58 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MFieldSchema" is tagged as "embedded-only" so does not have its own datastore table.
17/12/20 07:39:58 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MOrder" is tagged as "embedded-only" so does not have its own datastore table.
17/12/20 07:39:58 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MFieldSchema" is tagged as "embedded-only" so does not have its own datastore table.
17/12/20 07:39:58 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MOrder" is tagged as "embedded-only" so does not have its own datastore table.
17/12/20 07:39:58 INFO Query: Reading in results for query "org.datanucleus.store.rdbms.query.SQLQuery@0" since the connection used is closing
17/12/20 07:39:59 INFO Datastore: The class "org.apache.hadoop.hive.metastore.model.MResourceUri" is tagged as "embedded-only" so does not have its own datastore table.

我已经设定:

log4j.logger.org.apache.spark=WARN
log4j.logger.org.apache.hadoop.hive=WARN

但这没有帮助。

0 个答案:

没有答案