Hadoop sort example fails with 'not a SequenceFile'. How set the SequenceFile -
i'm trying run bin/hadoop jar hadoop-examples-1.0.4.jar sort input output
but error "java.io.ioexception: hdfs://master:9000/usr/ubuntu/input/file1 not sequencefile"
if run bin/hadoop jar hadoop-examples-1.0.4.jar wordcount input output it's work.
so can't figure out how deal it
the error message here right; sort example expecting sequence file - flat file of binary keys , values input, kind generated output mapreduce jobs.
however, wordcount example not expecting sequence file in particular input, merely text file read in keys being offset (line number) file, value being line content.
seeing input files have not sequence files per se, sort cannot run using them.
Comments
Post a Comment