单机spark 运行 sparkPi 失败

知行合一1 发布于 2016/09/11 13:37
阅读 1K+
收藏 0
root@master bin]# run-example SparkPi
16/09/11 13:35:18 INFO spark.SparkContext: Running Spark version 1.6.2
16/09/11 13:35:19 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/09/11 13:35:20 INFO spark.SecurityManager: Changing view acls to: root
16/09/11 13:35:20 INFO spark.SecurityManager: Changing modify acls to: root
16/09/11 13:35:20 INFO spark.SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(root); users with modify permissions: Set(root)
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:21 WARN util.Utils: Service 'sparkDriver' could not bind on port 0. Attempting port 1.
16/09/11 13:35:23 ERROR spark.SparkContext: Error initializing SparkContext.
java.net.BindException: Cannot assign requested address: Service 'sparkDriver' failed after 16 retries! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.
	at sun.nio.ch.Net.bind0(Native Method)
	at sun.nio.ch.Net.bind(Net.java:433)
	at sun.nio.ch.Net.bind(Net.java:425)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
	at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
	at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089)
	at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430)
	at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415)
	at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903)
	at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198)
	at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
	at java.lang.Thread.run(Thread.java:745)
16/09/11 13:35:23 INFO spark.SparkContext: Successfully stopped SparkContext
Exception in thread "main" java.net.BindException: Cannot assign requested address: Service 'sparkDriver' failed after 16 retries! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.
	at sun.nio.ch.Net.bind0(Native Method)
	at sun.nio.ch.Net.bind(Net.java:433)
	at sun.nio.ch.Net.bind(Net.java:425)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
	at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
	at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089)
	at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430)
	at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415)
	at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903)
	at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198)
	at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
	at java.lang.Thread.run(Thread.java:745)



加载中
0
Gillian_Male
Gillian_Male
看看你的端口是不是被占用了啊
返回顶部
顶部