0

hi i have a matrix and want to pass it on to mapper class in hadoop multinode cluster set up, but matrix is not in file. Is there any way of passing matrix without writing it to a file?

  • we are going to need a lot more detail to help you out here. Where is the matrix? How is it structured? What have you tried? Do you have code? What are you trying to do? – Donald Miner Apr 09 '12 at 13:51

1 Answers1

0

In JobConf, you specify the input using the method setInputFormat. InputFormat has many classes implementing its interface.

Apart from FileInputFormat and its subclasses, you have other classes which implement InputFormat like DBInputFormat, Parser.Node and more.. See if you can use any those.

If none suits your needs, try to build your own custom InputFormat class to achieve the same.

Tejas Patil
  • 6,149
  • 1
  • 23
  • 38