简体   繁体   English

HDFS +在HDFS文件夹到本地文件系统文件夹之间创建符号链接

[英]HDFS + create simbolic link between HDFS folder to local filesystem folder

I searched in google but not find it, 我在Google中搜索但找不到,

is it possible to create link between HDFS folder to local folder? 是否可以在HDFS文件夹与本地文件夹之间创建链接?

example

we want to create link between folder_1 in HDFS to /home/hdfs_mirror local folder 我们要在HDFS中的folder_1/ home / hdfs_mirror本地文件夹之间创建链接

HDFS folder: HDFS文件夹:

su hdfs
$ hdfs dfs -ls /hdfs_home/folder_1

Linux local folder: Linux本地文件夹:

ls /home/hdfs_mirror 

I do not think it is possible. 我认为不可能。

This is because we are talking about two different File Systems (HDFS and Local FileSystem). 这是因为我们正在谈论两个不同的文件系统(HDFS和本地文件系统)。

in case we want to keep syncing the Local Data Directory to HDFS directory then need to make use of some tools like Apache Flume. 如果我们想继续将本地数据目录同步到HDFS目录,则需要使用Apache Flume之类的工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM