How to open part-r-0000 in gedit

499 views
Skip to first unread message

Arun Kumar

unread,
Apr 2, 2015, 12:37:05 PM4/2/15
to chenn...@googlegroups.com

Hi All,

How to open part-r-0000 file in gedit

I used below this  command, but not show proper text.

hadoopuser@arul-PC:/usr/local/hadoop$ bin/hadoop dfs -getmerge /user/hadoopuser/MapReduceSample-output/part-00000 /home/arul/MROutput


It show unknow format data.

Please help me.

Thanking you.

gow tham

unread,
Apr 3, 2015, 9:01:31 AM4/3/15
to chenn...@googlegroups.com
Hi

1st option 

You can use dfs cat or text command for reading part-r-0000

2nd option

Use dfs copytolocal command and download it in your local path then use gedit

3rd option

Get the block id of part-r-0000 and search it in your data-dir then open it with gedit 


And you have used getmerge . this command is used to merge all the same format files in a hdfs directory and download it to local.

--
You received this message because you are subscribed to the Google Groups "Hadoop Users Group (HUG) Chennai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chennaihug+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Arun Kumar

unread,
Apr 20, 2015, 12:37:36 PM4/20/15
to chenn...@googlegroups.com
Hi Gowtham


I used below command lk you told.but not open,when i try to open it show unknow format.

Please how to open the file,please help me.

hduser@arul-laptop:/usr/local/hadoop/bin$ hadoop fs -get part-r-00000 output.txt
hduser@arul-laptop:/usr/local/hadoop/bin$ hadoop fs -copyToLocal output.txt /home/hduser/workspace/vvv/


Reply all
Reply to author
Forward
0 new messages