spark-shell 启动报错, error: not found: value spark(低级已解决)

查看报错原因: java.net.BindException: Cannot assign requested address: Service ‘sparkDriver’ failed after 16 retries (starting from 0)! 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.

我擦,一看肯定是找不到对应的主机,然后就去看看是不是hosts文件的映射出问题了,
果然是。
之前为了上网将ip改成dhcp(动态的),所以当前ip和hosts文件不一致。

改了hosts文件后。666,又可以进去了。

你可能感兴趣的:(spark)