Support Questions
Find answers, ask questions, and share your expertise

transfer files from local to hdfs in AWS instance

Explorer

Hi Team,

I am new to linux environment and I m trying to practice my hdpcd exam in AWS instance. I am trying to copy the file from local to hdfs it throws access denied exception.

If i tried with hdfs sudo user it is asking for the password for the sudo user horton.

If i ssh using root@namenode I m not able to access the local file system,

Help me with the steps to do the file transfer in aws instance from local the hdfs system.

1 ACCEPTED SOLUTION

Accepted Solutions

Expert Contributor

You can can use simple hadoop -put source(local file system) destination (hdfs path). Make sure you have permission to access files on both local file system and hdfs.

View solution in original post

3 REPLIES 3

Expert Contributor

You can can use simple hadoop -put source(local file system) destination (hdfs path). Make sure you have permission to access files on both local file system and hdfs.

View solution in original post

Explorer

I have given the write access to the destination folder in hdfs and it worked. Thanks for the reply

Expert Contributor

@Logeswaran Radhakrishnan Please accept the answer if this worked for you