How to put files to specific node?

后端 未结 1 479
轮回少年
轮回少年 2020-12-17 06:00

Is it possible to tell HDFS where to store particular files?

Use case

I\'ve just loaded batch #1 of files into HDFS and w

相关标签:
1条回答
  • 2020-12-17 06:40

    Technically, you can, but I wouldn't.

    If you want full control over where the data goes, you can extend BlockPlacementPolicy (see how does hdfs choose a datanode to store). This won't be easy to do and I don't recommend it.

    You can probably take steps to minimize the amount of traffic between your two sets of nodes with some clever setup to use rack-awareness to your advantage.

    0 讨论(0)
提交回复
热议问题