hdfs - how to store XML files in hadoop? -
i have installed hadoop-2.2.0 on ubuntu 12.04. want store xml files of 2-4 kb. can guide me how should it?
formate namenode...start hadoop system , then...
just store file, can use
hadoop fs -copyfromlocal file.xml /
to check file stored on hdfs run this... or in web-browser type url "hostname:50070" - hostname==ip address of machine on hadoop namenode installed. (if not single node cluster).
hadoop fs -ls /
to read file on hdfs shell
hadoop fs -cat /file.xml
Comments
Post a Comment