[jira] [Resolved] (SPARK-15519) Shuffle Service fails to start if first yarn.nodemanager.local-dirs is bad

2016-05-25 Thread Sean Owen (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-15519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Owen resolved SPARK-15519.
---
Resolution: Duplicate

> Shuffle Service fails to start if first yarn.nodemanager.local-dirs is bad
> --
>
> Key: SPARK-15519
> URL: https://issues.apache.org/jira/browse/SPARK-15519
> Project: Spark
>  Issue Type: Bug
>  Components: Shuffle, YARN
>Affects Versions: 1.6.1
> Environment: Ubuntu 14.04 LTS, MapR 5.1, hadoop-2.7.0
>Reporter: Matthew Sharp
>
> {{yarn.nodemanager.local-dirs}} is set to 
> {{/mnt/data0,/mnt/data1,/mnt/data2,/mnt/data3,/mnt/data4}}
> /mnt/data0 was not mounted due to a disk failure, so it was an empty 
> directory which users were not allowed to write to.
> Starting up the node manager, we get this in the logs:
> {quote}
> 2016-05-24 15:41:56,456 INFO 
> org.apache.spark.network.yarn.YarnShuffleService: Initializing YARN shuffle 
> service for Spark
> 2016-05-24 15:41:56,456 INFO 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices: 
> Adding auxiliary service spark_shuffle, "spark_shuffle"
> 2016-05-24 15:41:56,609 ERROR 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver: error opening 
> leveldb file /mnt/data0/registeredExecutors.ldb.  Creating new file, will not 
> be able to recover state for existing applications
> org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: 
> /mnt/data0/registeredExecutors.ldb/LOCK: Permission denied
> at 
> org.fusesource.leveldbjni.internal.NativeDB.checkStatus(NativeDB.java:200)
> at org.fusesource.leveldbjni.internal.NativeDB.open(NativeDB.java:218)
> at org.fusesource.leveldbjni.JniDBFactory.open(JniDBFactory.java:168)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver.(ExternalShuffleBlockResolver.java:100)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver.(ExternalShuffleBlockResolver.java:81)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockHandler.(ExternalShuffleBlockHandler.java:56)
> at 
> org.apache.spark.network.yarn.YarnShuffleService.serviceInit(YarnShuffleService.java:128)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:157)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
> at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:250)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
> at 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:256)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:476)
> at 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:524)
> 2016-05-24 15:41:56,611 WARN 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver: error deleting 
> /mnt/data0/registeredExecutors.ldb
> 2016-05-24 15:41:56,611 ERROR 
> org.apache.spark.network.yarn.YarnShuffleService: Failed to initialize 
> external shuffle service
> java.io.IOException: Unable to create state store
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver.(ExternalShuffleBlockResolver.java:129)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver.(ExternalShuffleBlockResolver.java:81)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockHandler.(ExternalShuffleBlockHandler.java:56)
> at 
> org.apache.spark.network.yarn.YarnShuffleService.serviceInit(YarnShuffleService.java:128)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:157)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
> at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:250)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.service.CompositeService.serv

[jira] [Resolved] (SPARK-15519) Shuffle Service fails to start if first yarn.nodemanager.local-dirs is bad

2016-05-24 Thread Matthew Sharp (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-15519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthew Sharp resolved SPARK-15519.
---
Resolution: Fixed

Agreed, closing as dupe.

> Shuffle Service fails to start if first yarn.nodemanager.local-dirs is bad
> --
>
> Key: SPARK-15519
> URL: https://issues.apache.org/jira/browse/SPARK-15519
> Project: Spark
>  Issue Type: Bug
>  Components: Shuffle, YARN
>Affects Versions: 1.6.1
> Environment: Ubuntu 14.04 LTS, MapR 5.1, hadoop-2.7.0
>Reporter: Matthew Sharp
>
> {{yarn.nodemanager.local-dirs}} is set to 
> {{/mnt/data0,/mnt/data1,/mnt/data2,/mnt/data3,/mnt/data4}}
> /mnt/data0 was not mounted due to a disk failure, so it was an empty 
> directory which users were not allowed to write to.
> Starting up the node manager, we get this in the logs:
> {quote}
> 2016-05-24 15:41:56,456 INFO 
> org.apache.spark.network.yarn.YarnShuffleService: Initializing YARN shuffle 
> service for Spark
> 2016-05-24 15:41:56,456 INFO 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices: 
> Adding auxiliary service spark_shuffle, "spark_shuffle"
> 2016-05-24 15:41:56,609 ERROR 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver: error opening 
> leveldb file /mnt/data0/registeredExecutors.ldb.  Creating new file, will not 
> be able to recover state for existing applications
> org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: 
> /mnt/data0/registeredExecutors.ldb/LOCK: Permission denied
> at 
> org.fusesource.leveldbjni.internal.NativeDB.checkStatus(NativeDB.java:200)
> at org.fusesource.leveldbjni.internal.NativeDB.open(NativeDB.java:218)
> at org.fusesource.leveldbjni.JniDBFactory.open(JniDBFactory.java:168)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver.(ExternalShuffleBlockResolver.java:100)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver.(ExternalShuffleBlockResolver.java:81)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockHandler.(ExternalShuffleBlockHandler.java:56)
> at 
> org.apache.spark.network.yarn.YarnShuffleService.serviceInit(YarnShuffleService.java:128)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:157)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
> at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:250)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
> at 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:256)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:476)
> at 
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:524)
> 2016-05-24 15:41:56,611 WARN 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver: error deleting 
> /mnt/data0/registeredExecutors.ldb
> 2016-05-24 15:41:56,611 ERROR 
> org.apache.spark.network.yarn.YarnShuffleService: Failed to initialize 
> external shuffle service
> java.io.IOException: Unable to create state store
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver.(ExternalShuffleBlockResolver.java:129)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockResolver.(ExternalShuffleBlockResolver.java:81)
> at 
> org.apache.spark.network.shuffle.ExternalShuffleBlockHandler.(ExternalShuffleBlockHandler.java:56)
> at 
> org.apache.spark.network.yarn.YarnShuffleService.serviceInit(YarnShuffleService.java:128)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:157)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
> at 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:250)
> at 
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> at 
> org.apache.hadoop