Skip to content

Need error informative error for invalid commadns - NPE with g.v.count vs g.V.count #157

@astubbs

Description

@astubbs

I know g.V. .. is the correct form, but a nicer error regarding syntax input would be nice

09:17:02 INFO mapred.LocalJobRunner: Map task executor complete.
09:17:02 WARN mapred.LocalJobRunner: job_local104758096_0006
java.lang.Exception: java.io.IOException: java.lang.reflect.InvocationTargetException
    at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:354)
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
    at com.thinkaurelius.faunus.mapreduce.MapSequence$Map.setup(MapSequence.java:60)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:142)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:364)
    at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:223)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    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:722)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.thinkaurelius.faunus.mapreduce.MapSequence$Map.setup(MapSequence.java:39)
    ... 10 more
Caused by: java.lang.NullPointerException
    at com.thinkaurelius.faunus.mapreduce.transform.VertexMap$Map.getLongCollection(VertexMap.java:57)
    at com.thinkaurelius.faunus.mapreduce.transform.VertexMap$Map.setup(VertexMap.java:42)
    ... 15 more
09:17:03 INFO mapred.JobClient: Job complete: job_local104758096_0006
09:17:03 INFO mapred.JobClient: Counters: 0
09:17:03 ERROR mapreduce.FaunusCompiler: Faunus job error -- remaining MapReduce jobs have been canceled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions