hadoop - SequenceFile as text CLI with custom class -


i have hdfs file in sequencefile format. key text , value custom serializable class (say) mycustomclass. want read file via hadoop fs -text command fails hadoop not know mycustomclass definition is.

i tried hdfs dfs - text command got same response back. using hadoop2.

is there way can specify class (through jar example, -cp myjar.jar option)?

hadoop fs -libjars my-lib.jar -text output-dir/part-r-* 

this read in sequence file key/value pairs , call tostring() on both objects, tab separating them when outputting stdout. -libjars specifies hadoop can find custom key / value classes

how-to-parse-customwritable-from-text-in-hadoop


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -