Interactive shell for communicating with your Cloudera Cluster making
use of the cm_api
|
|
|
|
|
| generate_output(self,
headers,
rows,
align=None) |
source code
|
|
|
|
emptyline(self)
Called each time a user hits enter, by default it will redo the last
command, this is an extension so it does nothing. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
do_show(self,
option,
single=None)
General System Information
Usage:
> show clusters list of clusters this CM manages
> show hosts list of all hosts CM manages
> show services list of all services on this cluster
including their health. |
source code
|
|
|
|
| complete_log(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
| complete_stdout(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
| complete_stderr(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
| complete_show(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
service_action(self,
service,
action)
Perform given action on service for the selected cluster |
source code
|
|
|
|
services_autocomplete(self,
text,
line,
start_index,
end_index,
append=[]) |
source code
|
|
|
|
|
|
|
| complete_start_service(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
|
|
|
| complete_restart_service(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
|
|
|
| complete_stop_service(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
|
|
|
cluster_autocomplete(self,
text,
line,
start_index,
end_index)
autocomplete for the use command, obtain list of clusters first |
source code
|
|
|
|
| complete_use(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
|
|
|
| complete_roles(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
roles_autocomplete(self,
text,
line,
start_index,
end_index)
Return full list of roles |
source code
|
|
|
|
|
|
|
| complete_start_role(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
|
|
|
| complete_restart_role(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
|
|
|
| complete_stop_role(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
|
|
|
| complete_stop_cluster(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
|
|
|
| complete_start_cluster(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
|
|
|
| complete_version(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
|
| complete_status(self,
text,
line,
start_index,
end_index) |
source code
|
|
|
Inherited from cmd.Cmd:
__init__,
cmdloop,
columnize,
complete,
complete_help,
completedefault,
completenames,
default,
do_help,
get_names,
onecmd,
parseline,
postcmd,
postloop,
precmd,
print_topics
|