Well, it seems I have to brush up my hdfs architecture :)

The /hbase is on hdfs .. it will not be visible though as in not have a
visible directory structure ( u will not see a /mnt/hadoop/data/hbase or
/mnt/hadoop/name/hbase.. 

U do a ./hadoop dfs -lsr /hbase/ will give u 

[had...@cdh1 bin]$ ./hadoop dfs -lsr /hbase/
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 11:00 /hbase/-ROOT-
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 10:45
/hbase/-ROOT-/70236052
-rw-r--r--   2 hadoop supergroup        622 2010-04-01 10:45
/hbase/-ROOT-/70236052/.regioninfo
drwxr-xr-x   - hadoop supergroup          0 2010-04-02 11:59
/hbase/-ROOT-/70236052/info
-rw-r--r--   2 hadoop supergroup       1185 2010-04-02 11:59
/hbase/-ROOT-/70236052/info/1512632587533039962
drwxr-xr-x   - hadoop supergroup          0 2010-04-02 11:59
/hbase/-ROOT-/compaction.dir
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 11:04 /hbase/.META.
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 11:04
/hbase/.META./1028785192
-rw-r--r--   2 hadoop supergroup        932 2010-04-01 10:45
/hbase/.META./1028785192/.regioninfo
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 11:04
/hbase/.META./1028785192/info
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 11:04
/hbase/.META./compaction.dir
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 10:59 /hbase/.logs
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 11:59
/hbase/.logs/cdh2,60020,1270137574145
-rw-r--r--   2 hadoop supergroup          0 2010-04-01 11:59
/hbase/.logs/cdh2,60020,1270137574145/hlog.dat.1270141164934
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 13:59
/hbase/.logs/cdh3,60020,1270137574138
-rw-r--r--   2 hadoop supergroup        991 2010-04-01 11:59
/hbase/.logs/cdh3,60020,1270137574138/hlog.dat.1270141164933
-rw-r--r--   2 hadoop supergroup          0 2010-04-01 13:59
/hbase/.logs/cdh3,60020,1270137574138/hlog.dat.1270148365979
-rw-r--r--   2 hadoop supergroup          3 2010-04-01 10:45
/hbase/hbase.version
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 13:57
/hbase/myLittleHBaseTable
drwxr-xr-x   - hadoop supergroup          0 2010-04-01 13:57
/hbase/myLittleHBaseTable/818787
-rw-r--r--   2 hadoop supergroup        612 2010-04-01 13:57
/hbase/myLittleHBaseTable/818787/.regioninfo


and so on .. This is the logical interpretation done for u by the hdfs core
, of data that resides in the dfs ..



 

vishalsant wrote:
> 
> I have the hadoop configured with 
> 
> <property> 
>   <name>dfs.data.dir</name> 
>   <value>/mnt/hadoop/data</value> 
>   <description>Default block replication. 
>   The actual number of replications can be specified when the file is
> created. 
>   The default is used if replication is not specified in create time. 
>   </description> 
> </property> 
> 
> 
> and my HBase has 
> 
> <property> 
>     <name>hbase.rootdir</name> 
>     <value>hdfs://cdh1:54310/hbase</value> 
>     <description>The directory shared by region servers. 
>     </description> 
>   </property> 
> 
> the hdfs://cdh1:54310 is the hadoop url. 
> 
> I would have expected the hbase dir , created at /mnt/hadoop/data/hbase
> but it is being created at the user root. When I run MR on hadoop
> independent of HBase , the data files are created at /mnt/hadoop/data/
> thus proving that hadoop independently is honoring the dfs.data.dir. 
> 
> NOTE that I have the hdfs-site.xml sym linked up in  [HBase_Dir]/conf
> though I do not think it matters.
> 

-- 
View this message in context: 
http://old.nabble.com/Hbase-data-directory-not-recognizing-hadoop%27s-hbase.rootdir-tp28120041p28121387.html
Sent from the HBase User mailing list archive at Nabble.com.

Reply via email to