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?
Asked
Active
Viewed 366 times
1 Answers
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