error java.io.IOException: Cannot run program "thrift": error=2, No such file or directory
Raams-MBP:kinesis-example-scala-consumer raam$ sbt compile
[info] Loading project definition from /Users/raam/Code/kinesis-example-scala-consumer/project
[info] Set current project to kinesis-example-scala-consumer (in build file:/Users/raam/Code/kinesis-example-scala-consumer/)
[info] Compiling schema with command: thrift -gen java:hashcode -o /Users/raam/Code/kinesis-example-scala-consumer/target/scala-2.10/src_managed/main /Users/raam/Code/kinesis-example-scala-consumer/src/main/thrift/thrift_data.thrift
java.io.IOException: Cannot run program "thrift": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:384)
at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:136)
at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:167)
at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:167)
at sbt.BufferedLogger.buffer(BufferedLogger.scala:25)
at sbt.AbstractProcessBuilder.runBuffered(ProcessImpl.scala:167)
at sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:164)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1$$anonfun$apply$1.apply(ThriftPlugin.scala:125)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1$$anonfun$apply$1.apply(ThriftPlugin.scala:120)
at scala.collection.immutable.Set$Set1.foreach(Set.scala:74)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1.apply(ThriftPlugin.scala:120)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1.apply(ThriftPlugin.scala:117)
at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:188)
at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:188)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:202)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:198)
at sbt.Difference.apply(Tracked.scala:177)
at sbt.Difference.apply(Tracked.scala:158)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:198)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:197)
at sbt.Difference.apply(Tracked.scala:177)
at sbt.Difference.apply(Tracked.scala:152)
at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:197)
at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:195)
at com.github.bigtoast.sbtthrift.ThriftPlugin$.compileThrift(ThriftPlugin.scala:132)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$thriftSettings$9.apply(ThriftPlugin.scala:51)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$thriftSettings$9.apply(ThriftPlugin.scala:49)
at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:35)
at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:34)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:384)
at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:136)
at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:167)
at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:167)
at sbt.BufferedLogger.buffer(BufferedLogger.scala:25)
at sbt.AbstractProcessBuilder.runBuffered(ProcessImpl.scala:167)
at sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:164)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1$$anonfun$apply$1.apply(ThriftPlugin.scala:125)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1$$anonfun$apply$1.apply(ThriftPlugin.scala:120)
at scala.collection.immutable.Set$Set1.foreach(Set.scala:74)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1.apply(ThriftPlugin.scala:120)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1.apply(ThriftPlugin.scala:117)
at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:188)
at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:188)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:202)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:198)
at sbt.Difference.apply(Tracked.scala:177)
at sbt.Difference.apply(Tracked.scala:158)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:198)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:197)
at sbt.Difference.apply(Tracked.scala:177)
at sbt.Difference.apply(Tracked.scala:152)
at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:197)
at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:195)
at com.github.bigtoast.sbtthrift.ThriftPlugin$.compileThrift(ThriftPlugin.scala:132)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$thriftSettings$9.apply(ThriftPlugin.scala:51)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$thriftSettings$9.apply(ThriftPlugin.scala:49)
at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:35)
at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:34)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
error java.io.IOException: Cannot run program "thrift": error=2, No such file or directory
Raams-MBP:kinesis-example-scala-consumer raam$ sbt compile [info] Loading project definition from /Users/raam/Code/kinesis-example-scala-consumer/project [info] Set current project to kinesis-example-scala-consumer (in build file:/Users/raam/Code/kinesis-example-scala-consumer/) [info] Compiling schema with command: thrift -gen java:hashcode -o /Users/raam/Code/kinesis-example-scala-consumer/target/scala-2.10/src_managed/main /Users/raam/Code/kinesis-example-scala-consumer/src/main/thrift/thrift_data.thrift java.io.IOException: Cannot run program "thrift": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:384) at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:136) at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:167) at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:167) at sbt.BufferedLogger.buffer(BufferedLogger.scala:25) at sbt.AbstractProcessBuilder.runBuffered(ProcessImpl.scala:167) at sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:164) at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1$$anonfun$apply$1.apply(ThriftPlugin.scala:125) at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1$$anonfun$apply$1.apply(ThriftPlugin.scala:120) at scala.collection.immutable.Set$Set1.foreach(Set.scala:74) at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1.apply(ThriftPlugin.scala:120) at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1.apply(ThriftPlugin.scala:117) at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:188) at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:188) at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:202) at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:198) at sbt.Difference.apply(Tracked.scala:177) at sbt.Difference.apply(Tracked.scala:158) at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:198) at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:197) at sbt.Difference.apply(Tracked.scala:177) at sbt.Difference.apply(Tracked.scala:152) at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:197) at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:195) at com.github.bigtoast.sbtthrift.ThriftPlugin$.compileThrift(ThriftPlugin.scala:132) at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$thriftSettings$9.apply(ThriftPlugin.scala:51) at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$thriftSettings$9.apply(ThriftPlugin.scala:49) at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:35) at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:384)
at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:136)
at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:167)
at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:167)
at sbt.BufferedLogger.buffer(BufferedLogger.scala:25)
at sbt.AbstractProcessBuilder.runBuffered(ProcessImpl.scala:167)
at sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:164)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1$$anonfun$apply$1.apply(ThriftPlugin.scala:125)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1$$anonfun$apply$1.apply(ThriftPlugin.scala:120)
at scala.collection.immutable.Set$Set1.foreach(Set.scala:74)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1.apply(ThriftPlugin.scala:120)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$1.apply(ThriftPlugin.scala:117)
at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:188)
at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:188)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:202)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:198)
at sbt.Difference.apply(Tracked.scala:177)
at sbt.Difference.apply(Tracked.scala:158)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:198)
at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:197)
at sbt.Difference.apply(Tracked.scala:177)
at sbt.Difference.apply(Tracked.scala:152)
at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:197)
at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:195)
at com.github.bigtoast.sbtthrift.ThriftPlugin$.compileThrift(ThriftPlugin.scala:132)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$thriftSettings$9.apply(ThriftPlugin.scala:51)
at com.github.bigtoast.sbtthrift.ThriftPlugin$$anonfun$thriftSettings$9.apply(ThriftPlugin.scala:49)
at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:35)
at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:34)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)