What version are you running? If it's the 0.2.0 release then it has a series of know bugs related to table name reuse. Truncate is basically dropping a table by it's name and recreating it. The bugs are related to a table name being reused. I would suggest that you run 0.2.2 which has not been released yet. It is code complete and has the the fixes for this problem.
I would suggest that you run code from the apache-blur-0.2 branch. The version will be 0.2.2 when released. To check it out and compile yourself: git clone https://git-wip-us.apache.org/repos/asf/incubator-blur.git git checkout apache-blur-0.2 mvn install -DskipTests -Dhadoop1 You could also grab the latest build binaries from Jenkins Apache CI server: https://builds.apache.org/job/Blur-master-jdk6/ Download links: https://builds.apache.org/job/Blur-master-jdk6/216/org.apache.blur$apache-blur/ Let us know if you have any other questions or issues. Aaron On Fri, Apr 11, 2014 at 11:28 AM, Neda Grbic <[email protected]> wrote: > Hi! > > I've been trying to truncate table from my code. > I did succeed in that, but if I try to add some data to it afterwards, I > get NullPointerException at > > stackTraceStr:java.lang.NullPointerException > at org.apache.blur.thrift.BlurControllerServer.mutate( > BlurControllerServer.java:1083) > at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > > While truncating table, I tried fetching its descriptor before and using > it afterwards when recreating, but same error. > As far as I've seen, only restarting shard server helped. I'm using only > one shard server when testing. > > Any ideas? > > Thanks, > Neda >
