简体   繁体   中英

Specifying the path to a hdfs directory within a python script on anaconda

I'm using anaconda on VM and I have a line that's supposed to find a file in hdfs, but when I run the code

/path-to-hdfs/ 

it becomes

file/upload/project/envs/default/path-to-hdfs

It's basically trying to find the document within anaconda.

How can I change it so that it doesn't change my link

您需要使用hdfs://前缀,但是Python不会从HDFS本地读取

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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