Browsing into a folder in Hadoop -
i ssh debvox hadoop , if saay hadoop fs -ls
lot of files including
drwxr-xr-x - root hadoop 0 2013-07-11 17:49 sandeep drwxr-xr-x - root hadoop 0 2013-04-10 14:13 testprocedure drwxr-xr-x - root hadoop 0 2013-04-03 13:56 tmp
i need go inside tmp folder, took @ hadoop shell commands in here still didn't find command it. http://hadoop.apache.org/docs/r0.18.3/hdfs_shell.html
so what's command go folder?
specify directory name, follows:
hadoop fs -ls tmp
sample output demo vm:
hadoop fs -ls
[cloudera@localhost ~]$ hadoop fs -ls found 12 items -rw-r--r-- 1 cloudera supergroup 46 2013-06-18 21:18 /user/cloudera/filewrite.txt -rw-r--r-- 1 cloudera supergroup 13 2013-06-18 15:34 /user/cloudera/helloworld.txt drwxr-xr-x - cloudera supergroup 0 2013-07-01 22:07 /user/cloudera/hiveext drwxr-xr-x - cloudera supergroup 0 2012-06-12 15:10 /user/cloudera/input -rw-r--r-- 1 cloudera supergroup 176 2013-06-18 23:07 /user/cloudera/input_data.txt drwxr-xr-x - cloudera supergroup 0 2012-09-06 15:44 /user/cloudera/movies_input drwxr-xr-x - cloudera supergroup 0 2012-09-06 17:02 /user/cloudera/movies_output drwxr-xr-x - cloudera supergroup 0 2012-09-06 14:53 /user/cloudera/output drwxr-xr-x - cloudera supergroup 0 2013-07-01 23:45 /user/cloudera/sample_external_input -rw-r--r-- 1 cloudera supergroup 16 2012-06-14 01:39 /user/cloudera/test.txt drwxr-xr-x - cloudera supergroup 0 2012-06-13 00:00 /user/cloudera/weather_input drwxr-xr-x - cloudera supergroup 0 2012-06-13 15:13 /user/cloudera/weather_output
when specify directory hadoop fs -ls sample_external_input
:
[cloudera@localhost ~]$ hadoop fs -ls sample_external_input found 2 items -rw-r--r-- 1 cloudera supergroup 61 2013-07-01 23:17 /user/cloudera/sample_external_input/sample_external_data.txt -rw-r--r-- 1 cloudera supergroup 13 2013-07-01 23:18 /user/cloudera/sample_external_input/sample_external_data2.txt
Comments
Post a Comment