RE: can not enable snapshot function on hbase 0.94.6

2014-10-16 Thread ashish singhi
See http://stackoverflow.com/questions/21777018/big-data-hbase if it can help.

Regards
Ashish

-Original Message-
From: ch huang [mailto:justlo...@gmail.com] 
Sent: 17 October 2014 12:02
To: user@hbase.apache.org
Subject: can not enable snapshot function on hbase 0.94.6

hi,maillist :
 i installed CDH4.4 with hbase version 0.94.6 ,(no cloudera manager
involved) but when i test snapshot function ,i get error like this  ,acturally 
, i add the following info into my /etc/hbase/conf/hbase-site.xml (each node) 
,and restart hbase cluster,still same error,anyone know why?


hbase.snapshot.enabled
true



hbase(main):002:0> snapshot 'demo','demo_2014'

ERROR: java.io.IOException: java.io.IOException:
java.lang.UnsupportedOperationException: To use snapshots, You must add to the 
hbase-site.xml of the HBase Master: 'hbase.snapshot.enabled' property with 
value 'true'.
at
org.apache.hadoop.hbase.master.HMaster.snapshot(HMaster.java:2008)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:320)
at
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1428)
Caused by: java.lang.UnsupportedOperationException: To use snapshots, You must 
add to the hbase-site.xml of the HBase Master:
'hbase.snapshot.enabled' property with value 'true'.
at
org.apache.hadoop.hbase.master.snapshot.SnapshotManager.checkSnapshotSupport(SnapshotManager.java:890)
at
org.apache.hadoop.hbase.master.HMaster.snapshot(HMaster.java:2006)
... 6 more

Here is some help for this command:
Take a snapshot of specified table. Examples:

  hbase> snapshot 'sourceTable', 'snapshotName'


Re: can not enable snapshot function on hbase 0.94.6

2014-10-19 Thread ch huang
thanks for reply,but i am not deply the cluster use cloudera manager ,
that's information is not applicable!

On Fri, Oct 17, 2014 at 2:37 PM, ashish singhi 
wrote:

> See http://stackoverflow.com/questions/21777018/big-data-hbase if it can
> help.
>
> Regards
> Ashish
>
> -Original Message-
> From: ch huang [mailto:justlo...@gmail.com]
> Sent: 17 October 2014 12:02
> To: user@hbase.apache.org
> Subject: can not enable snapshot function on hbase 0.94.6
>
> hi,maillist :
>  i installed CDH4.4 with hbase version 0.94.6 ,(no cloudera manager
> involved) but when i test snapshot function ,i get error like this
> ,acturally , i add the following info into my
> /etc/hbase/conf/hbase-site.xml (each node) ,and restart hbase cluster,still
> same error,anyone know why?
>
> 
> hbase.snapshot.enabled
> true
> 
>
>
> hbase(main):002:0> snapshot 'demo','demo_2014'
>
> ERROR: java.io.IOException: java.io.IOException:
> java.lang.UnsupportedOperationException: To use snapshots, You must add to
> the hbase-site.xml of the HBase Master: 'hbase.snapshot.enabled' property
> with value 'true'.
> at
> org.apache.hadoop.hbase.master.HMaster.snapshot(HMaster.java:2008)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
>
> org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:320)
> at
> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1428)
> Caused by: java.lang.UnsupportedOperationException: To use snapshots, You
> must add to the hbase-site.xml of the HBase Master:
> 'hbase.snapshot.enabled' property with value 'true'.
> at
>
> org.apache.hadoop.hbase.master.snapshot.SnapshotManager.checkSnapshotSupport(SnapshotManager.java:890)
> at
> org.apache.hadoop.hbase.master.HMaster.snapshot(HMaster.java:2006)
> ... 6 more
>
> Here is some help for this command:
> Take a snapshot of specified table. Examples:
>
>   hbase> snapshot 'sourceTable', 'snapshotName'
>


Re: can not enable snapshot function on hbase 0.94.6

2014-10-21 Thread Bharath Vissapragada
Did you restart HMaster? You can check the master's runtime conf at
/conf and that should show this config.

On Sun, Oct 19, 2014 at 6:00 PM, ch huang  wrote:

> thanks for reply,but i am not deply the cluster use cloudera manager ,
> that's information is not applicable!
>
> On Fri, Oct 17, 2014 at 2:37 PM, ashish singhi 
> wrote:
>
> > See http://stackoverflow.com/questions/21777018/big-data-hbase if it can
> > help.
> >
> > Regards
> > Ashish
> >
> > -Original Message-
> > From: ch huang [mailto:justlo...@gmail.com]
> > Sent: 17 October 2014 12:02
> > To: user@hbase.apache.org
> > Subject: can not enable snapshot function on hbase 0.94.6
> >
> > hi,maillist :
> >  i installed CDH4.4 with hbase version 0.94.6 ,(no cloudera
> manager
> > involved) but when i test snapshot function ,i get error like this
> > ,acturally , i add the following info into my
> > /etc/hbase/conf/hbase-site.xml (each node) ,and restart hbase
> cluster,still
> > same error,anyone know why?
> >
> > 
> > hbase.snapshot.enabled
> > true
> > 
> >
> >
> > hbase(main):002:0> snapshot 'demo','demo_2014'
> >
> > ERROR: java.io.IOException: java.io.IOException:
> > java.lang.UnsupportedOperationException: To use snapshots, You must add
> to
> > the hbase-site.xml of the HBase Master: 'hbase.snapshot.enabled' property
> > with value 'true'.
> > at
> > org.apache.hadoop.hbase.master.HMaster.snapshot(HMaster.java:2008)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:606)
> > at
> >
> >
> org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:320)
> > at
> >
> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1428)
> > Caused by: java.lang.UnsupportedOperationException: To use snapshots, You
> > must add to the hbase-site.xml of the HBase Master:
> > 'hbase.snapshot.enabled' property with value 'true'.
> > at
> >
> >
> org.apache.hadoop.hbase.master.snapshot.SnapshotManager.checkSnapshotSupport(SnapshotManager.java:890)
> > at
> > org.apache.hadoop.hbase.master.HMaster.snapshot(HMaster.java:2006)
> > ... 6 more
> >
> > Here is some help for this command:
> > Take a snapshot of specified table. Examples:
> >
> >   hbase> snapshot 'sourceTable', 'snapshotName'
> >
>



-- 
Bharath Vissapragada