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
Comments
Post a Comment