Command to store File on HDFS

前端 未结 1 1298
礼貌的吻别
礼貌的吻别 2021-01-24 20:54

Introduction

A Hadoop NameNode and three DataNodes have been installed and are running. The next step is to provide a File to HDFS. The following comman

相关标签:
1条回答
  • 2021-01-24 21:52

    If no path is provided, hadoop will try to copy the file in your hdfs home directory. In other words, if you're logged as utrecht, it will try to copy ubuntu-14.04-desktop-amd64.iso to /user/utrecht.

    However, this folder doesn't exist from scratch (you can normally check the dfs via a web browser). To make your command work, you have two choices :

    • copy it elsewhere (/ works, but putting everything there may lead to complications in the future)
    • create the directory you want with hdfs dfs -mkdir /yourFolderPath
    0 讨论(0)
提交回复
热议问题