问题
I am new with Hadoop, I have a file to import into hadoop via command line (I access the machine through SSH)
How can I import the file in hadoop? How can I check afterward (command)?
回答1:
2 steps to import csv file
- move csv file to hadoop sanbox (/home/username) using winscp or cyberduck.
use -put command to move file from local location to hdfs.
hdfs dfs -put /home/username/file.csv /user/data/file.csv
来源:https://stackoverflow.com/questions/34277239/importing-csv-file-into-hadoop