hanwentan 2016-01-07
java.io.FileNotFoundException: /tmp/snappy-unknown-37fcfd52-311b-4696-bdac-7b6a105f8c33-libsnappyjava.a (文件访问许可权不允许执行指定的操作。)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
at org.xerial.snappy.SnappyLoader.extractLibraryFile(SnappyLoader.java:212)
at org.xerial.snappy.SnappyLoader.findNativeLibrary(SnappyLoader.java:307)
at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:163)
at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:145)
at org.xerial.snappy.Snappy.<clinit>(Snappy.java:47)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
at org.apache.spark.io.SnappyCompressionCodec.<init>(CompressionCodec.scala:149)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:68)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:529)
at org.apache.spark.io.CompressionCodec$.createCodec(CompressionCodec.scala:67)
at org.apache.spark.io.CompressionCodec$.createCodec(CompressionCodec.scala:60)
at org.apache.spark.broadcast.TorrentBroadcast.org$apache$spark$broadcast$TorrentBroadcast$$setConf(TorrentBroadcast.scala:73)
at org.apache.spark.broadcast.TorrentBroadcast.<init>(TorrentBroadcast.scala:80)
at org.apache.spark.broadcast.TorrentBroadcastFactory.newBroadcast(TorrentBroadcastFactory.scala:34)
at org.apache.spark.broadcast.BroadcastManager.newBroadcast(BroadcastManager.scala:63)
at org.apache.spark.SparkContext.broadcast(SparkContext.scala:1327)
at org.apache.spark.SparkContext$$anonfun$hadoopFile$1.apply(SparkContext.scala:1015)
at org.apache.spark.SparkContext$$anonfun$hadoopFile$1.apply(SparkContext.scala:1012)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.SparkContext.withScope(SparkContext.scala:709)
at org.apache.spark.SparkContext.hadoopFile(SparkContext.scala:1012)
at com.bjyada.rps.previously.impl.TxtHandleImpl.getTxt(TxtHandleImpl.scala:26)
at com.bjyada.rps.previously.impl.PreviouslyHandleImpl$$anonfun$handle$1.apply(PreviouslyHandleImpl.scala:28)
at com.bjyada.rps.previously.impl.PreviouslyHandleImpl$$anonfun$handle$1.apply(PreviouslyHandleImpl.scala:23)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
at com.bjyada.rps.previously.impl.PreviouslyHandleImpl.handle(PreviouslyHandleImpl.scala:23)
at com.bjyada.rps.despatch.jobs.FrameJob.execute(FrameJob.java:50)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
java.lang.NullPointerException
at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:1413)
at javax.mail.internet.MimeBodyPart.setText(MimeBodyPart.java:1060)
at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1521)
at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1505)
at com.bjyada.rps.alarming.Mail.send(Mail.java:47)
at com.bjyada.rps.alarming.impl.EmailAlarmingHandler.send(EmailAlarmingHandler.java:20)
at com.bjyada.rps.despatch.jobs.FrameJob.execute(FrameJob.java:60)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:68)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:529)
at org.apache.spark.io.CompressionCodec$.createCodec(CompressionCodec.scala:67)
at org.apache.spark.io.CompressionCodec$.createCodec(CompressionCodec.scala:60)
at org.apache.spark.broadcast.TorrentBroadcast.org$apache$spark$broadcast$TorrentBroadcast$$setConf(TorrentBroadcast.scala:73)
at org.apache.spark.broadcast.TorrentBroadcast.<init>(TorrentBroadcast.scala:80)
at org.apache.spark.broadcast.TorrentBroadcastFactory.newBroadcast(TorrentBroadcastFactory.scala:34)
at org.apache.spark.broadcast.BroadcastManager.newBroadcast(BroadcastManager.scala:63)
at org.apache.spark.SparkContext.broadcast(SparkContext.scala:1327)
at org.apache.spark.SparkContext$$anonfun$hadoopFile$1.apply(SparkContext.scala:1015)
at org.apache.spark.SparkContext$$anonfun$hadoopFile$1.apply(SparkContext.scala:1012)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
at org.apache.spark.SparkContext.withScope(SparkContext.scala:709)
at org.apache.spark.SparkContext.hadoopFile(SparkContext.scala:1012)
at com.bjyada.rps.previously.impl.TxtHandleImpl.getTxt(TxtHandleImpl.scala:26)
at com.bjyada.rps.previously.impl.PreviouslyHandleImpl$$anonfun$handle$1.apply(PreviouslyHandleImpl.scala:28)
at com.bjyada.rps.previously.impl.PreviouslyHandleImpl$$anonfun$handle$1.apply(PreviouslyHandleImpl.scala:23)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
at com.bjyada.rps.previously.impl.PreviouslyHandleImpl.handle(PreviouslyHandleImpl.scala:23)
at com.bjyada.rps.despatch.jobs.FrameJob.execute(FrameJob.java:50)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.IllegalArgumentException: java.lang.UnsatisfiedLinkError: snappyjava (Not found in java.library.path)
at org.apache.spark.io.SnappyCompressionCodec.<init>(CompressionCodec.scala:151)
... 26 more
Caused by: java.lang.UnsatisfiedLinkError: snappyjava (Not found in java.library.path)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1213)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1177)
at java.lang.System.loadLibrary(System.java:530)
at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:170)
at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:145)
at org.xerial.snappy.Snappy.<clinit>(Snappy.java:47)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
at org.apache.spark.io.SnappyCompressionCodec.<init>(CompressionCodec.scala:149)
... 26 more
出错原因:因为使用的是inm jdk1.7.0
解决办法:换个高版本