View the files in command line

to create new topics or reply. | New User Registration

This topic contains 3 replies, has 3 voices, and was last updated by  gehhrald 1 year, 5 months ago.

  • Creator
    Topic
  • #45532

    How can I access files which I have uploaded into HDP using file browser ?

Viewing 3 replies - 1 through 3 (of 3 total)

You must be to reply to this topic. | Create Account

  • Author
    Replies
  • #45742

    gehhrald
    Member

    Hi Karthikeyan,

    Typically the directory the file would be stored in is defined by you.
    Assuming you use the copyFromLocal command, hadoop fs -copyFromLocal /Users/Example.txt /user/ The file, Example.txt is stored in /user on hdfs.

    You can also use the command, hadoop fs -ls to view the files in that particular directory. Similar to the ls command in linux.
    If you have Ambari, you can also view the uploaded files via ambari.
    Log in to ambari > services > hdfs > quick links > namenode ui > browse the file system.

    Collapse
    #45665

    Thanks Robert Molina,I have one more clarification .Where i can see the Uploaded file using browser in command line or which directory .

    Collapse
    #45560

    Robert Molina
    Moderator

    Hi Karthikeyan,
    Via the command line, you can use the hadoop fs commands to do the usual file system operations (copy, list, move..etc) In addition, you can go to the namenode webui an view the files and folders via the webui as well.

    Hope that helps.

    Kind Regards,
    Robert

    Collapse
Viewing 3 replies - 1 through 3 (of 3 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.