Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3324

NegativeArraySizeException in CreateDictionaryJob$2.getDictionary()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v2.4.0
    • None
    • None

    Description

      During cube build, got following exception:

      2018-01-31 09:58:14,982 ERROR [Scheduler 311988476 Job b931b081-3b44-462b-9bce-e15bf245f1b9-862] common.HadoopShellExecutable : error execute HadoopShellExecutable{id=b931b081-3b44-462b-9bce-e15bf245f1b9-03, name=Build Dimension Dictionary, state=RUNNING}
      java.lang.NegativeArraySizeException
      	at org.apache.hadoop.io.BytesWritable.setCapacity(BytesWritable.java:144)
      	at org.apache.hadoop.io.BytesWritable.setSize(BytesWritable.java:123)
      	at org.apache.hadoop.io.BytesWritable.readFields(BytesWritable.java:179)
      	at org.apache.hadoop.io.SequenceFile$Reader.getCurrentValue(SequenceFile.java:2259)
      	at org.apache.hadoop.io.SequenceFile$Reader.next(SequenceFile.java:2387)
      	at org.apache.kylin.engine.mr.steps.CreateDictionaryJob$2.getDictionary(CreateDictionaryJob.java:87)
      	at org.apache.kylin.cube.cli.DictionaryGeneratorCLI.processSegment(DictionaryGeneratorCLI.java:62)
      	at org.apache.kylin.cube.cli.DictionaryGeneratorCLI.processSegment(DictionaryGeneratorCLI.java:49)
      	at org.apache.kylin.engine.mr.steps.CreateDictionaryJob.run(CreateDictionaryJob.java:66)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
      	at org.apache.kylin.engine.mr.common.HadoopShellExecutable.doWork(HadoopShellExecutable.java:62)
      	at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:125)
      	at org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:64)
      	at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:125)
      	at org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:156)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)

      Root cause seems to be https://stackoverflow.com/questions/24127304/negativearraysizeexception-when-creating-a-sequencefile-with-large-1gb-bytesw

      Attachments

        Activity

          People

            liyang.gmt8@gmail.com liyang
            liyang.gmt8@gmail.com liyang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: