[ 
https://issues.apache.org/jira/browse/HBASE-10935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14011311#comment-14011311
 ] 

Tianying Chang commented on HBASE-10935:
----------------------------------------

[~mbertozzi] I made the change, but the ruby shell code seems won't accept this 
line I added in admin.rb: java_import 
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription
It throws error when I try to start hbase shell. Any idea? 

[root@hbasetestnode-f7c52eba:/usr/lib/hbase/lib/ruby/hbase]# hbase shell 
NoMethodError: undefined method `SnapshotDescription' for 
Java::OrgApacheHadoopHbaseProtobufGenerated::HBaseProtos:Class
   (root) at /usr/lib/hbase/bin/../bin/../lib/ruby/hbase/admin.rb:24
  require at org/jruby/RubyKernel.java:1038
   (root) at /usr/lib/hbase/bin/../bin/../lib/ruby/hbase/admin.rb:23
  require at org/jruby/RubyKernel.java:1038
   (root) at /usr/lib/hbase/bin/../bin/../lib/ruby/hbase/hbase.rb:77
  require at org/jruby/RubyKernel.java:1038
   (root) at /usr/lib/hbase/bin/../bin/hirb.rb:103


> support snapshot policy where flush memstore can be skipped to prevent 
> production cluster freeze
> ------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-10935
>                 URL: https://issues.apache.org/jira/browse/HBASE-10935
>             Project: HBase
>          Issue Type: New Feature
>          Components: shell, snapshots
>    Affects Versions: 0.94.7, 0.94.18
>            Reporter: Tianying Chang
>            Assignee: Tianying Chang
>            Priority: Minor
>             Fix For: 0.99.0
>
>         Attachments: jira-10935-trunk.patch, jira-10935.patch
>
>
> We are using snapshot feature to do HBase disaster recovery. We will do 
> snapshot in our production cluster periodically. The current flush snapshot 
> policy require all regions of the table to coordinate to prevent write and do 
> flush at the same time. Since we use WALPlayer to complete the data that is 
> not in the snapshot HFile, we don't need the snapshot to do coordinated 
> flush. The snapshot just recored all the HFile that are already there. 
> I added the parameter in the HBase shell. So people can choose to use the 
> NoFlush snapshot when they need, like below. Otherwise, the default flush 
> snpahot support is not impacted. 
> >snaphot 'TestTable', 'TestSnapshot', 'skipFlush'



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to