C:\Windows\System32>spark-shell
20/04/25 14:33:58 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
20/04/25 14:34:00 WARN General: Plugin (Bundle) “org.datanucleus.api.jdo” is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL “file:/G:/spark/jars/datanucleus-api-jdo-3.2.6.jar” is already registered, and you are trying to register an identical plugin located at URL “file:/G:/spark/bin/…/jars/datanucleus-api-jdo-3.2.6.jar.”
20/04/25 14:34:00 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:/G:/spark/jars/datanucleus-rdbms-3.2.9.jar” is already registered, and you are trying to register an identical plugin located at URL “file:/G:/spark/bin/…/jars/datanucleus-rdbms-3.2.9.jar.”
20/04/25 14:34:00 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:/G:/spark/jars/datanucleus-core-3.2.10.jar” is already registered, and you are trying to register an identical plugin located at URL “file:/G:/spark/bin/…/jars/datanucleus-core-3.2.10.jar.”
20/04/25 14:34:08 WARN ObjectStore: Failed to get database global_temp, returning NoSuchObjectException
Spark context Web UI available at http://192.168.81.99:4040
Spark context available as ‘sc’ (master = local[*], app id = local-1587796439339).
Spark session available as ‘spark’.
Welcome to
____ __
/ / ___ / /
\ / _ / _ `/ __/ '/
// .__/_,// //_\ version 2.1.1
//
Using Scala version 2.11.8 (Java HotSpot™ 64-Bit Server VM, Java 1.8.0_201)
Type in expressions to have them evaluated.
Type :help for more information.
在windows中启动spark,虽然没有错误,但这几个警告也看着难受,西安记录一下,后面研究。