[root@cos1000 bin]# pwd/usr/local/cluster/spark/bin
[root@cos1000 bin]# spark-shell --driver-class-path ../examples/jars/mysql-connector-java-5.1.47-bin.jar --jars ../examples/jars/mysql-connector-java-5.1.47-bin.jar
20/02/11 00:21:24 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform...using builtin-java classes where applicable
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel).For SparkR, use setLogLevel(newLevel).
20/02/11 00:21:55 WARN util.Utils: Service 'SparkUI' could not bind on port 4040. Attempting port 4041.
20/02/11 00:21:55 WARN util.Utils: Service 'SparkUI' could not bind on port 4041. Attempting port 4042.
20/02/11 00:21:55 WARN util.Utils: Service 'SparkUI' could not bind on port 4042. Attempting port 4043