Windows의 우분투에서 bash에 spark 2.0.1을 설치 및 구성하려고합니다. 나는 Apache Spark - Installation의 지침에 따라 모든 것이 내가 이런 spark-shell
을 실행하지만 때 확인을 설치받을 듯 :Windows에서 우분투의 bash에서 Spark를 실행하면서 오류를 초기화하는 중 오류가 발생했습니다.
16/11/06 11:25:47 ERROR SparkContext: Error initializing SparkContext.
java.net.SocketException: Invalid argument
at sun.nio.ch.Net.listen(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:224)
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/11/06 11:25:47 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/11/06 11:25:47 WARN Utils: Your hostname, DESKTOP-IKGIG97 resolves to a loopback address: 127.0.0.1; using 151.127.0.0 instead (on interface wifi0)
16/11/06 11:25:47 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address
을
저는 리눅스에서 멍청한 사람입니다. 다음에해야 할 일에 관해선 조금 우둔합니다. 경우는 여기에 중요한 내 문제를 식별 할 수 있습니다 여기에 /etc/hosts
127.0.0.1 localhost
127.0.0.1 DESKTOP-IKGIG97
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
희망 누군가의 내용입니다. 이 오류를 조사하고 수정하려면 무엇을해야합니까?
오류에서 알 수 있듯이
확인하십시오 : 당신이 우분투 또는 Microsoft Windows에서 실행됩니다? – Yaron
야론, 둘 다 실제로. Windows 10에는 Windows의 우분투에서 bash를 실행할 수있는 기능이 있습니다. http://www.howtogeek.com/265900/everything-you-can-do-with-windows-10s-new-bash-shell/ – jamiet