Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4822 Spark UT failures after merge from trunk
  3. PIG-4823

SparkMiniCluster does not cleanup old conf files during setup

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: spark-branch
    • Component/s: spark
    • Labels:

      Description

      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:

      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
      

        Attachments

        1. PIG-4823.patch
          0.6 kB
          Pallavi Rao

          Activity

            People

            • Assignee:
              pallavi.rao Pallavi Rao
              Reporter:
              pallavi.rao Pallavi Rao
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: