You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by marjana <mi...@us.ibm.com> on 2016/08/25 13:58:08 UTC
Hbase table size with replicas
Hi,
If I run "hadoop fs -du -s -h .." - does that include all the replicas? If I
have 3 copies, do I need to multiple this number with 3, or is this
including all the replicas?
Thanks!
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Hbase-table-size-with-replicas-tp4082087.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: Hbase table size with replicas
Posted by Dima Spivak <ds...@cloudera.com>.
That HDFS didn't have the change. See HADOOP-6857 for details.
On Thursday, August 25, 2016, marjana <mi...@us.ibm.com> wrote:
> Hm I only see one number:
>
> 2.4 M /apps/hbase/data/data/default/FACT_AMERICAN
>
> This is 2.3.0 version.
>
>
>
> --
> View this message in context: http://apache-hbase.679495.n3.
> nabble.com/Hbase-table-size-with-replicas-tp4082087p4082089.html
> Sent from the HBase User mailing list archive at Nabble.com.
>
--
-Dima
Re: Hbase table size with replicas
Posted by marjana <mi...@us.ibm.com>.
Thanks, you were correct, shows no replicas:
$ dd if=/dev/zero of=/tmp/output.file bs=1024 count=1024
$ ll /tmp/output.file
-rw------- 1 hbase hadoop 1048576 Aug 25 14:56 /tmp/output.file
$ hadoop fs -mkdir /apps/testdir
hadoop fs -put /tmp/output.file /apps/testdir
$ hadoop fs -du -s -h /apps/testdir
1 M /apps/testdir
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Hbase-table-size-with-replicas-tp4082087p4082098.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: Hbase table size with replicas
Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
The it is most probably the size without replaction.
to be 100% sure you can create a 1MB file using this command:
dd if=/dev/zero of=output.file bs=1024 count=1024
Then push it in HDFS and see what tize it gives you...
JMS
2016-08-25 10:24 GMT-04:00 marjana <mi...@us.ibm.com>:
> Hm I only see one number:
>
> 2.4 M /apps/hbase/data/data/default/FACT_AMERICAN
>
> This is 2.3.0 version.
>
>
>
> --
> View this message in context: http://apache-hbase.679495.n3.
> nabble.com/Hbase-table-size-with-replicas-tp4082087p4082089.html
> Sent from the HBase User mailing list archive at Nabble.com.
>
Re: Hbase table size with replicas
Posted by marjana <mi...@us.ibm.com>.
Hm I only see one number:
2.4 M /apps/hbase/data/data/default/FACT_AMERICAN
This is 2.3.0 version.
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Hbase-table-size-with-replicas-tp4082087p4082089.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: Hbase table size with replicas
Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Hi Marjana,
Depending on the HDFS version you have, you should see 2 numbers at the
beginning of the line.
Something like:
11.7 K 32.5K /user/myself
The first number is without the HDFS replicates.
The 2nd number is with the HDFS replicates.
HTH,
JMS
2016-08-25 9:58 GMT-04:00 marjana <mi...@us.ibm.com>:
> Hi,
> If I run "hadoop fs -du -s -h .." - does that include all the replicas? If
> I
> have 3 copies, do I need to multiple this number with 3, or is this
> including all the replicas?
> Thanks!
>
>
>
> --
> View this message in context: http://apache-hbase.679495.n3.
> nabble.com/Hbase-table-size-with-replicas-tp4082087.html
> Sent from the HBase User mailing list archive at Nabble.com.
>