Sounds like there could be a wrong version on the classpath then
2012/12/11 William Oberman <ober...@civicscience.com> > Your line numbers aren't matching up to the 1.1.7 release, which is weird. > Based on the "stock" 1.1.7 source, there was a null check on str > before predicateFromString(str), > making your code path impossible... > > will > > > On Tue, Dec 11, 2012 at 1:00 PM, Jonathan Coveney <jcove...@gmail.com > >wrote: > > > If I were debugging this (note, I know nothing about cassandra), I would > > put a flag in my ide on cassandra storage and see what is going on in > > there, and why it is erroring out. Then I would follow that backwards > into > > whatever in Pig was generating that issue. That's pretty vague but can't > > really say much else unless I knew a ton about CassandraStorage. > > > > > > 2012/12/10 James Schappet <jschap...@gmail.com> > > > > > Any thoughts on how I can start diagnosing this problem? > > > > > > > > > On 12/5/12 12:43 PM, "Schappet, James C" <james-schap...@uiowa.edu> > > wrote: > > > > > > >Hi folks, > > > > > > > >I am new to pig, and I am trying to get the basic pig + cassandra > > samples > > > >working. > > > > > > > >I have created the PigTest Keyspace, and I am trying to run some of > the > > > >command in test_storage.pig, but I get the following: > > > > > > > > > > > >tsunami:pig schappetj$ bin/pig_cassandra -x local > > > >Using /Library/pig-0.10.0/pig-0.10.0.jar. > > > >2012-12-05 12:28:50,415 [main] INFO org.apache.pig.Main - Logging > error > > > >messages to: > > > >/Library/apache-cassandra-1.1.7-src/examples/pig/pig_1354732130411.log > > > >2012-12-05 12:28:50,616 [main] INFO > > > >org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - > > > >Connecting to hadoop file system at: file:/// > > > >2012-12-05 12:28:50.701 java[17814:1c03] Unable to load realm info > from > > > >SCDynamicStore > > > >grunt> U8 = load 'cassandra://PigTest/U8' using CassandraStorage(); > > > >2012-12-05 12:28:54,084 [main] ERROR org.apache.pig.tools.grunt.Grunt > - > > > >ERROR 2999: Unexpected internal error. null > > > >Details at logfile: > > > >/Library/apache-cassandra-1.1.7-src/examples/pig/pig_1354732130411.log > > > >grunt> > > > > > > > > > > > > > > > > > > > > > > > > > /Library/apache-cassandra-1.1.7-src/examples/pig/pig_1354732130411.log > > > >Pig Stack Trace > > > >--------------- > > > >ERROR 2999: Unexpected internal error. null > > > > > > > >java.lang.NullPointerException > > > > at org.apache.cassandra.utils.Hex.hexToBytes(Hex.java:51) > > > > at > > > > > > >org.apache.cassandra.hadoop.ConfigHelper.predicateFromString(ConfigHelper. > > > >java:206) > > > > at > > > > > > >org.apache.cassandra.hadoop.ConfigHelper.getInputSlicePredicate(ConfigHelp > > > >er.java:176) > > > > at > > > > > > >org.apache.cassandra.hadoop.pig.CassandraStorage.setLocation(CassandraStor > > > >age.java:567) > > > > at > > > > > > >org.apache.cassandra.hadoop.pig.CassandraStorage.getSchema(CassandraStorag > > > >e.java:600) > > > > at > > > > > > >org.apache.pig.newplan.logical.relational.LOLoad.getSchemaFromMetaData(LOL > > > >oad.java:150) > > > > at > > > > > > >org.apache.pig.newplan.logical.relational.LOLoad.getSchema(LOLoad.java:109 > > > >) > > > > at > > > > > > >org.apache.pig.newplan.logical.visitor.LineageFindRelVisitor.visit(Lineage > > > >FindRelVisitor.java:100) > > > > at > > > > >org.apache.pig.newplan.logical.relational.LOLoad.accept(LOLoad.java:218) > > > > at > > > > > > >org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.ja > > > >va:75) > > > > at > org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:50) > > > > at > > > > > > >org.apache.pig.newplan.logical.visitor.CastLineageSetter.<init>(CastLineag > > > >eSetter.java:57) > > > > at org.apache.pig.PigServer$Graph.compile(PigServer.java:1679) > > > > at > > > >org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1610) > > > > at > > > >org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1582) > > > > at org.apache.pig.PigServer.registerQuery(PigServer.java:584) > > > > at > > > > >org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:942) > > > > at > > > > > > >org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParse > > > >r.java:386) > > > > at > > > > > > >org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:1 > > > >88) > > > > at > > > > > > >org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:1 > > > >64) > > > > at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:69) > > > > at org.apache.pig.Main.run(Main.java:495) > > > > at org.apache.pig.Main.main(Main.java:111) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > at > > > > > > >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > > > >57) > > > > at > > > > > > >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > > > >pl.java:43) > > > > at java.lang.reflect.Method.invoke(Method.java:601) > > > > at org.apache.hadoop.util.RunJar.main(RunJar.java:156) > > > > > > > > > > > > > > > >PIG 0.10.0 > > > >Cassandra 1.1.7 w/source > > > > > > > >ENV Osx Lion: > > > >$ java -version > > > >java version "1.7.0_04" > > > >Java(TM) SE Runtime Environment (build 1.7.0_04-b21) > > > >Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode) > > > > > > > >set | grep PIG > > > >PIG_HOME=/Library/pig-0.10.0 > > > >PIG_INITIAL_ADDRESS=localhost > > > >PIG_PARTITIONER=org.apache.cassandra.dht.RandomPartitioner > > > >PIG_RPC_PORT=9160 > > > > > > > > > > > > > > > >