tolitius / cbass

adding "simple" to HBase
Eclipse Public License 1.0
24 stars 11 forks source link

:auto not supported on headerless data. {} #6

Closed 0xqd closed 7 years ago

0xqd commented 7 years ago

I got this error while scanning the data from hbase ( apache nutch data ) .


CompilerException clojure.lang.ExceptionInfo: :auto not supported on headerless data. {}, compiling```
tolitius commented 7 years ago

most likely you are trying to read data from HBase that was not written with cbass.

cbass uses nippy for serialization / deserialization by default. In case you are working with data that was not written by cbass, you can change it:

(def conn (new-connection conf :pack identity 
                               :unpack identity))

In this example cbass will not try to pack / unpack when it writes / reads data from HBase. You can of course substitute identity function above with your way of serializing / deserializing data to / from HBase.

more details in the serialization section of the docs.

0xqd commented 7 years ago

@tolitius thanks.