启动spark-shell时,什么是“已经注册”的WARN消息?

时间:2017-09-24 18:35:56

标签: windows apache-spark

我在windows下安装了spark / hadoop。当我执行spark-shell时,我收到了这些“已经注册”的警告。

我不确定这是否是我需要担心的事情

C:\Users\Administrator\spark-2.2.0-bin-hadoop2.7\bin>spark-shell
Using Spark's default log4j profile: org/apache/spark/log4j defaults.properties
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
17/09/24 14:29:15 WARN General: Plugin (Bundle) "org.datanucleus.store.rdbms" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the
 classpath. The URL "file:/C:/Users/Administrator/spark-2.2.0-bin-hadoop2.7/bin/../jars/datanucleus-rdbms-3.2.9.jar" is already registered, and you are trying to registe
r an identical plugin located at URL "file:/C:/Users/Administrator/spark-2.2.0-bin-hadoop2.7/jars/datanucleus-rdbms-3.2.9.jar."
17/09/24 14:29:15 WARN General: Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath.
The URL "file:/C:/Users/Administrator/spark-2.2.0-bin-hadoop2.7/jars/datanucleus-core-3.2.10.jar" is already registered, and you are trying to register an identical plug
in located at URL "file:/C:/Users/Administrator/spark-2.2.0-bin-hadoop2.7/bin/../jars/datanucleus-core-3.2.10.jar."
17/09/24 14:29:15 WARN General: Plugin (Bundle) "org.datanucleus.api.jdo" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the cla
sspath. The URL "file:/C:/Users/Administrator/spark-2.2.0-bin-hadoop2.7/jars/datanucleus-api-jdo-3.2.6.jar" is already registered, and you are trying to register an iden
tical plugin located at URL "file:/C:/Users/Administrator/spark-2.2.0-bin-hadoop2.7/bin/../jars/datanucleus-api-jdo-3.2.6.jar."
17/09/24 14:29:19 WARN ObjectStore: Failed to get database global_temp, returning NoSuchObjectException
Spark context Web UI available at http://173.198.192.78:4040
Spark context available as 'sc' (master = local[*], app id = local-1506277753081).
Spark session available as 'spark'.
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 2.2.0
      /_/

Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_144)
Type in expressions to have them evaluated.
Type :help for more information.

scala>

1 个答案:

答案 0 :(得分:0)

这是一个警告,以确保同一类路径中没有多个罐子。 "已注册"意味着类路径中的jar已注册,应用程序正在尝试注册。如果您不希望将此设置日志级别设置为ERROR,则无需担心。