[no subject]
Hi, I'm running Spark 1.2 in yarn-client mode. (using Hadoop 2.6.0) On VirtualBox, I can run spark-shell --master yarn-client without any error However, on a physical machine, I got the following error. Does anyone know why this happens? Any help would be appreciated. Thanks, Kyounghyun 15/01/17 19:34:42 INFO netty.NettyBlockTransferService: Server created on 49709 15/01/17 19:34:42 INFO storage.BlockManagerMaster: Trying to register BlockManager 15/01/17 19:34:42 INFO storage.BlockManagerMasterActor: Registering block manager janus:49709 with 265.1 MB RAM, BlockManagerId(driver, janus, 49709) 15/01/17 19:34:42 INFO storage.BlockManagerMaster: Registered BlockManager 15/01/17 19:34:47 WARN remote.ReliableDeliverySupervisor: Association with remote system [akka.tcp://sparkYarnAM@192.168.123.178:60626] has failed, address is now gated for [5000] ms. Reason is: [Disassociated]. 15/01/17 19:34:47 ERROR cluster.YarnClientSchedulerBackend: Yarn application has already exited with state FINISHED! 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/stage/kill,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/static,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/executors/threadDump/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/executors/threadDump,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/executors/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/executors,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/environment/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/environment,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/storage/rdd/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/storage/rdd,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/storage/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/storage,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/pool/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/pool,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/stage/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/stage,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/jobs/job/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/jobs/job,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/jobs/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/jobs,null} 15/01/17 19:34:47 INFO ui.SparkUI: Stopped Spark web UI at http://janus:4040 15/01/17 19:34:47 INFO scheduler.DAGScheduler: Stopping DAGScheduler 15/01/17 19:34:47 INFO cluster.YarnClientSchedulerBackend: Shutting down all executors 15/01/17 19:34:47 INFO cluster.YarnClientSchedulerBackend: Asking each executor to shut down 15/01/17 19:34:47 INFO cluster.YarnClientSchedulerBackend: Stopped 15/01/17 19:34:48 INFO spark.MapOutputTrackerMasterActor: MapOutputTrackerActor stopped! 15/01/17 19:34:48 INFO storage.MemoryStore: MemoryStore cleared 15/01/17 19:34:48 INFO storage.BlockManager: BlockManager stopped 15/01/17 19:34:48 INFO storage.BlockManagerMaster: BlockManagerMaster stopped 15/01/17 19:34:48 INFO spark.SparkContext: Successfully stopped SparkContext 15/01/17 19:34:48 INFO remote.RemoteActorRefProvider$RemotingTerminator: Shutting down remote daemon. 15/01/17 19:34:48 INFO remote.RemoteActorRefProvider$RemotingTerminator: Remote daemon shut down; proceeding with flushing remote transports. 15/01/17 19:34:48 INFO remote.RemoteActorRefProvider$RemotingTerminator: Remoting shut down. 15/01/17 19:35:07 INFO cluster.YarnClientSchedulerBackend: SchedulerBackend is ready for scheduling beginning after waiting maxRegisteredResourcesWaitingTime: 3(ms) java.lang.NullPointerException at org.apache.spark.SparkContext.init(SparkContext.scala:497) at org.apache.spark.repl.SparkILoop.createSparkContext(SparkILoop.scala:986) at
spark error in yarn-client mode
Hi, I'm running Spark 1.2 in yarn-client mode. (using Hadoop 2.6.0) On VirtualBox, I can run spark-shell --master yarn-client without any error However, on a physical machine, I got the following error. Does anyone know why this happens? Any help would be appreciated. Thanks, Kyounghyun 15/01/17 19:34:42 INFO netty.NettyBlockTransferService: Server created on 49709 15/01/17 19:34:42 INFO storage.BlockManagerMaster: Trying to register BlockManager 15/01/17 19:34:42 INFO storage.BlockManagerMasterActor: Registering block manager janus:49709 with 265.1 MB RAM, BlockManagerId(driver, janus, 49709) 15/01/17 19:34:42 INFO storage.BlockManagerMaster: Registered BlockManager 15/01/17 19:34:47 WARN remote.ReliableDeliverySupervisor: Association with remote system [akka.tcp://sparkYarnAM@192.168.123.178:60626] has failed, address is now gated for [5000] ms. Reason is: [Disassociated]. 15/01/17 19:34:47 ERROR cluster.YarnClientSchedulerBackend: Yarn application has already exited with state FINISHED! 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/stage/kill,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/static,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/executors/threadDump/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/executors/threadDump,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/executors/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/executors,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/environment/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/environment,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/storage/rdd/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/storage/rdd,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/storage/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/storage,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/pool/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/pool,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/stage/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/stage,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/stages,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/jobs/job/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/jobs/job,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/jobs/json,null} 15/01/17 19:34:47 INFO handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/jobs,null} 15/01/17 19:34:47 INFO ui.SparkUI: Stopped Spark web UI at http://janus:4040 15/01/17 19:34:47 INFO scheduler.DAGScheduler: Stopping DAGScheduler 15/01/17 19:34:47 INFO cluster.YarnClientSchedulerBackend: Shutting down all executors 15/01/17 19:34:47 INFO cluster.YarnClientSchedulerBackend: Asking each executor to shut down 15/01/17 19:34:47 INFO cluster.YarnClientSchedulerBackend: Stopped 15/01/17 19:34:48 INFO spark.MapOutputTrackerMasterActor: MapOutputTrackerActor stopped! 15/01/17 19:34:48 INFO storage.MemoryStore: MemoryStore cleared 15/01/17 19:34:48 INFO storage.BlockManager: BlockManager stopped 15/01/17 19:34:48 INFO storage.BlockManagerMaster: BlockManagerMaster stopped 15/01/17 19:34:48 INFO spark.SparkContext: Successfully stopped SparkContext 15/01/17 19:34:48 INFO remote.RemoteActorRefProvider$RemotingTerminator: Shutting down remote daemon. 15/01/17 19:34:48 INFO remote.RemoteActorRefProvider$RemotingTerminator: Remote daemon shut down; proceeding with flushing remote transports. 15/01/17 19:34:48 INFO remote.RemoteActorRefProvider$RemotingTerminator: Remoting shut down. 15/01/17 19:35:07 INFO cluster.YarnClientSchedulerBackend: SchedulerBackend is ready for scheduling beginning after waiting maxRegisteredResourcesWaitingTime: 3(ms) java.lang.NullPointerException at org.apache.spark.SparkContext.init(SparkContext.scala:497) at org.apache.spark.repl.SparkILoop.createSparkContext(SparkILoop.scala:986) at