Pallavi Rao created PIG-4823:
--------------------------------

             Summary: SparkMiniCluster does not cleanup old conf files during 
setup
                 Key: PIG-4823
                 URL: https://issues.apache.org/jira/browse/PIG-4823
             Project: Pig
          Issue Type: Sub-task
            Reporter: Pallavi Rao


If some of the tests fail or get killed, new tests will use the old hadoop conf 
files left behind by the previous tests, causing the following failure:
{noformat}
Caused by: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Could not 
create staging directory. 
        at 
org.apache.hadoop.mapreduce.v2.MiniMRYarnCluster.serviceInit(MiniMRYarnCluster.java:165)
        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at 
org.apache.pig.test.SparkMiniCluster.setupMiniDfsAndMrClusters(SparkMiniCluster.java:93)
        at 
org.apache.pig.test.MiniGenericCluster.buildCluster(MiniGenericCluster.java:86)
        at 
org.apache.pig.test.MiniGenericCluster.buildCluster(MiniGenericCluster.java:68)
        at 
org.apache.pig.test.TestToolsPigServer.<clinit>(TestToolsPigServer.java:42)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:791)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:731)
        at org.apache.hadoop.ipc.Client.call(Client.java:1472)
        at org.apache.hadoop.ipc.Client.call(Client.java:1399)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:232)
        at com.sun.proxy.$Proxy15.mkdirs(Unknown Source)
        at 
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.mkdirs(ClientNamenodeProtocolTranslatorPB.java:539)
        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
        at com.sun.proxy.$Proxy16.mkdirs(Unknown Source)
        at org.apache.hadoop.hdfs.DFSClient.primitiveMkdir(DFSClient.java:2753)
        at org.apache.hadoop.fs.Hdfs.mkdir(Hdfs.java:311)
        at org.apache.hadoop.fs.FileContext$4.next(FileContext.java:724)
        at org.apache.hadoop.fs.FileContext$4.next(FileContext.java:720)
        at org.apache.hadoop.fs.FSLinkResolver.resolve(FSLinkResolver.java:90)
        at org.apache.hadoop.fs.FileContext.mkdir(FileContext.java:720)
        at 
org.apache.hadoop.mapreduce.v2.MiniMRYarnCluster.serviceInit(MiniMRYarnCluster.java:163)
Caused by: java.net.ConnectException: Connection refused
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to