Search code examples
javahadoophdfshadoop2sequencefile

Hadoop SequenceFile - auto increment key for records


I'm thinking to use a SequenceFile as "a little database" to store small files. I need that concurrency-client could store small file in this SequenceFile and retrieve an unique id (key of the record).

Is it possibile ? I'm new to hadoop and I'm reading a lot but I can't figure if it's possibile or not.

If yes, please post a small example (or some reference) if not. What can I do with hadoop for my necessity ?


Solution

  • Well, in the end it's not possible to do what I wanted.

    So I switched to HBase and I'm storing files as rows in a table.

    Now the performance are ok and all seems to go in the right way.