hba的shell脚本是通过ruby实现的

更新时间:2023-07-10 10:10:41 阅读: 评论:0

hba的shell脚本是通过ruby实现的hba中的shell命令是通过ruby实现的,所有的命令都在
hba-0.92.1-cdh4.1.2\src\main\ruby
⽬录下⾯,在shell中通过hba shell启动hba-->hirb.rb 加载ruby⽂件,通过
hba-0.92.1-cdh4.1.2\src\main\ruby\shell.rb
改观中配置的命令实现对hba的操作,下⾯是shell.rb中配置部分代码。
# Load commands ba class
require 'shell/commands'
# Load all commands
Shell.load_command_group(
'general',
:full_name => 'GENERAL HBASE SHELL COMMANDS',
:
commands => %w[
status
version
whoami运动手表怎么调时间
]
灿烂近义词)
Shell.load_command_group(
'ddl',
:full_name => 'TABLES MANAGEMENT COMMANDS',
:commands => %w[
alter
create
describe
disable
disable_all
is_disabled
drop
drop_all
enable
enable_all
葛根的功效
is_enabled
exists
list
show_filters
二十五味珊瑚丸alter_status
alter_async
]
)
Shell.load_command_group(家兔怎么养
'dml',
:full_name => 'DATA MANIPULATION COMMANDS',
:commands => %w[
count
delete
deleteall
get
get_counter
incr
put
scan
scan
truncate
]
)
Shell.load_command_group(
'tools',
:full_name => 'HBASE SURGERY TOOLS',
:comment => "WARNING: Above commands are for 'experts'-only as misu can damage an install",
:commands => %w[
assign
balancer
balance_switch
clo_region
窸窣是什么意思
compact
六年级下册数学题flush
major_compact
move
split
unassign
zk_dump
hlog_roll
]
)
Shell.load_command_group(
'replication',
:full_name => 'CLUSTER REPLICATION TOOLS',
:
comment => "In order to u the tools, plication must be true. enabling/disabling is currently unsupported",  :commands => %w[
add_peer
remove_peer
list_peers
enable_peer
disable_peer
start_replication
stop_replication
]
)
Shell.load_command_group(
'curity',
:full_name => 'SECURITY TOOLS',
:comment => "NOTE: Above commands are only applicable if running with the AccessController coprocessor",
:commands => %w[
grant
revoke
ur_permission
]
)

本文发布于:2023-07-10 10:10:41,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1075502.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:实现   配置   命令   运动   数学题   时间
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图