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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -