cascading.operation.OperationException

could not compile script: {* * return new cascading.tuple.Tuple(* * new Object[] {* * ViewDate,* * net.hydromatic.optiq.runtime.SqlFunctions.currentTimestamp(root)});* *}*

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web8

  • via Unknown by Tamás Fülöp,
  • via Stack Overflow by theomega
    ,
  • Stack trace

    • cascading.operation.OperationException: could not compile script: {* * return new cascading.tuple.Tuple(* * new Object[] {* * ViewDate,* * net.hydromatic.optiq.runtime.SqlFunctions.currentTimestamp(root)});* *}* at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:406) Caused by: cascading.operation.OperationException: could not compile script: {* * return new cascading.tuple.Tuple(* * new Object[] {* * ViewDate,* * net.hydromatic.optiq.runtime.SqlFunctions.currentTimestamp(root)});* *}* at cascading.operation.expression.ScriptOperation.getEvaluator(ScriptOperation.java:209) at cascading.operation.expression.ScriptOperation.prepare(ScriptOperation.java:276) at cascading.flow.stream.OperatorStage.prepare(OperatorStage.java:284) at cascading.flow.stream.StreamGraph.prepare(StreamGraph.java:167) at cascading.flow.hadoop.FlowMapper.run(FlowMapper.java:110) at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:417) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:332) at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:268) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.codehaus.commons.compiler.CompileException: Line 5, Column 72: Unknown variable or type "root"* at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:9014) at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:4685) at org.codehaus.janino.UnitCompiler.access$10000(UnitCompiler.java:104) at org.codehaus.janino.UnitCompiler$17.visitPackage(UnitCompiler.java:4438) at org.codehaus.janino.Java$Package.accept(Java.java:2231) at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:4476) at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:4682) at org.codehaus.janino.UnitCompiler.access$12500(UnitCompiler.java:104) at org.codehaus.janino.UnitCompiler$17.visitAmbiguousName(UnitCompiler.java:4466) at org.codehaus.janino.Java$AmbiguousName.accept(Java.java:2216) at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:4476) at org.codehaus.janino.UnitCompiler.findMostSpecificIInvocable(UnitCompiler.java:6688) at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:6589) at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:6488) at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3429) at org.codehaus.janino.UnitCompiler.access$6300(UnitCompiler.java:104) at org.codehaus.janino.UnitCompiler$11.visitMethodInvocation(UnitCompiler.java:2869) at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2831) at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2890) at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:3897) at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:3856) at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3833) at org.codehaus.janino.UnitCompiler.access$6800(UnitCompiler.java:104) at org.codehaus.janino.UnitCompiler$11.visitNewInitializedArray(UnitCompiler.java:2874) at org.codehaus.janino.Java$NewInitializedArray.accept(Java.java:3034) at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2890) at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:3897) at org.codehaus.janino.UnitCompiler.invokeConstructor(UnitCompiler.java:5847) at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3673) at org.codehaus.janino.UnitCompiler.access$6900(UnitCompiler.java:104) at org.codehaus.janino.UnitCompiler$11.visitNewClassInstance(UnitCompiler.java:2875) at org.codehaus.janino.Java$NewClassInstance.accept(Java.java:2922) at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2890) at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:3897) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1637) at org.codehaus.janino.UnitCompiler.access$1700(UnitCompiler.java:104) at org.codehaus.janino.UnitCompiler$5.visitReturnStatement(UnitCompiler.java:877) at org.codehaus.janino.Java$ReturnStatement.accept(Java.java:1803) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:888) at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:914) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:900) at org.codehaus.janino.UnitCompiler.access$700(UnitCompiler.java:104) at org.codehaus.janino.UnitCompiler$5.visitBlock(UnitCompiler.java:867) at org.codehaus.janino.Java$Block.accept(Java.java:1395) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:888) at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:914) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1999) at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:789) at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:770) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:464) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:357) at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java:312) at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:770) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:319) at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:288) at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:393) at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:311) at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:493) at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:345) at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:194) at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:80) at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:72) at org.codehaus.janino.ScriptEvaluator.<init>(ScriptEvaluator.java:107) at cascading.operation.expression.ScriptOperation.getEvaluator(ScriptOperation.java:205)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    tyson925tyson925
    8 times, last one