在windows环境变量中添加一个环境变量 SPARK_LOCAL_IP
在cmd中运行ipconfig命令查看自己的ip地址,然后赋值给这个环境变量
可以在代码尾部假如睡眠,避免任务运行完就退出,web ui 关闭
Thread.sleep(20000)
或者
if(arg.startsWith("--local"))
{
local = true
}
if(local)
{
System.in.read
spark.stop()
}
在windows环境变量中添加一个环境变量 SPARK_LOCAL_IP
在cmd中运行ipconfig命令查看自己的ip地址,然后赋值给这个环境变量
可以在代码尾部假如睡眠,避免任务运行完就退出,web ui 关闭
Thread.sleep(20000)
或者
if(arg.startsWith("--local"))
{
local = true
}
if(local)
{
System.in.read
spark.stop()
}