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
]
)