Re: Table export fails with NPE

2016-09-18 Thread Ted Yu
If you have bandwidth, you can try the following change which would show the KeyValue that doesn't have CellType : http://pastebin.com/TRRF1gtd You need to apply the change, build hbase-client jar and use this jar. Cheers On Sat, Sep 17, 2016 at 6:34 PM, Krishna wrote: > I'm using HBase 1.1 a

Re: Table export fails with NPE

2016-09-18 Thread Krishna
I will try that. And when inserting KeyValues, how would I set CellType? On Sunday, September 18, 2016, Ted Yu wrote: > If you have bandwidth, you can try the following change which would show > the KeyValue that doesn't have CellType : > > http://pastebin.com/TRRF1gtd > > You need to apply the

Re: Table export fails with NPE

2016-09-18 Thread Ted Yu
The following KeyValue ctor is called by your code: public KeyValue(final byte[] row, final byte[] family, final byte[] qualifier, final long timestamp, final byte[] value) { this(row, family, qualifier, timestamp, Type.Put, value); which should set Type to Type.Put FYI On Sun, S

Re: Table export fails with NPE

2016-09-18 Thread Krishna
Thanks. Its odd there are any null CellTypes in the table. On Sunday, September 18, 2016, Ted Yu wrote: > The following KeyValue ctor is called by your code: > > public KeyValue(final byte[] row, final byte[] family, > > final byte[] qualifier, final long timestamp, final byte[] value) {