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

ClassNotFoundException while use org.apache.kylin.engine.mr.common.CubeStatsReader in bash

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      use org.apache.kylin.engine.mr.common.CubeStatsReader to print estimated size for cube

       

      // code placeholder
      bash ./kylin.sh org.apache.kylin.engine.mr.common.CubeStatsReader {cube_name}
      

      get an Exception

      // code placeholder
      Exception in thread "main" java.lang.NoClassDefFoundError: com/tdunning/math/stats/TDigest
      	at org.apache.kylin.measure.percentile.PercentileSerializer.current(PercentileSerializer.java:62)
      	at org.apache.kylin.measure.percentile.PercentileSerializer.getStorageBytesEstimate(PercentileSerializer.java:52)
      	at org.apache.kylin.metadata.datatype.DataType.getStorageBytesEstimate(DataType.java:256)
      	at org.apache.kylin.engine.mr.common.CubeStatsReader.estimateCuboidStorageSize(CubeStatsReader.java:251)
      	at org.apache.kylin.engine.mr.common.CubeStatsReader.getCuboidSizeMapFromRowCount(CubeStatsReader.java:211)
      	at org.apache.kylin.engine.mr.common.CubeStatsReader.getCuboidSizeMap(CubeStatsReader.java:170)
      	at org.apache.kylin.engine.mr.common.CubeStatsReader.print(CubeStatsReader.java:273)
      	at org.apache.kylin.engine.mr.common.CubeStatsReader.main(CubeStatsReader.java:435)
      Caused by: java.lang.ClassNotFoundException: com.tdunning.math.stats.TDigest
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 8 more
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zhoukangcn ZhouKang
                Reporter:
                zhoukangcn ZhouKang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: