All Projects → kakao → cmux

kakao / cmux

Licence: Apache-2.0 license
A set of commands for managing CDH clusters using Cloudera Manager REST API.

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to cmux

phoenix
Apache Phoenix / Hbase Spring Boot Microservices
Stars: ✭ 23 (-32.35%)
Mutual labels:  hadoop, hbase
disk
基于hadoop+hbase+springboot实现分布式网盘系统
Stars: ✭ 53 (+55.88%)
Mutual labels:  hadoop, hbase
orion
Management and automation platform for Stateful Distributed Systems
Stars: ✭ 77 (+126.47%)
Mutual labels:  hadoop, hbase
Hbaseclient
HBase客户端数据管理软件
Stars: ✭ 135 (+297.06%)
Mutual labels:  hadoop, hbase
oci-cloudera
Terraform module to deploy Cloudera on Oracle Cloud Infrastructure (OCI)
Stars: ✭ 20 (-41.18%)
Mutual labels:  hadoop, cdh
Bigdata docker
Big Data Ecosystem Docker
Stars: ✭ 161 (+373.53%)
Mutual labels:  hadoop, hbase
dockerfiles
Multi docker container images for main Big Data Tools. (Hadoop, Spark, Kafka, HBase, Cassandra, Zookeeper, Zeppelin, Drill, Flink, Hive, Hue, Mesos, ... )
Stars: ✭ 29 (-14.71%)
Mutual labels:  hadoop, hbase
Antsdb
AntsDB is a low latency, high concurrency, MySQL compliant SQL layer for HBase
Stars: ✭ 99 (+191.18%)
Mutual labels:  hadoop, hbase
jmx exporter-cloudera-hadoop
Prometheus jmx_exporter configurations for Cloudera Hadoop
Stars: ✭ 33 (-2.94%)
Mutual labels:  hadoop, cdh
xxhadoop
Data Analysis Using Hadoop/Spark/Storm/ElasticSearch/MachineLearning etc. This is My Daily Notes/Code/Demo. Don't fork, Just star !
Stars: ✭ 37 (+8.82%)
Mutual labels:  hadoop, hbase
Gaffer
A large-scale entity and relation database supporting aggregation of properties
Stars: ✭ 1,642 (+4729.41%)
Mutual labels:  hadoop, hbase
darwin
Avro Schema Evolution made easy
Stars: ✭ 26 (-23.53%)
Mutual labels:  hadoop, hbase
Haproxy Configs
80+ HAProxy Configs for Hadoop, Big Data, NoSQL, Docker, Elasticsearch, SolrCloud, HBase, MySQL, PostgreSQL, Apache Drill, Hive, Presto, Impala, Hue, ZooKeeper, SSH, RabbitMQ, Redis, Riak, Cloudera, OpenTSDB, InfluxDB, Prometheus, Kibana, Graphite, Rancher etc.
Stars: ✭ 106 (+211.76%)
Mutual labels:  hadoop, hbase
Bigdata Playground
A complete example of a big data application using : Kubernetes (kops/aws), Apache Spark SQL/Streaming/MLib, Apache Flink, Scala, Python, Apache Kafka, Apache Hbase, Apache Parquet, Apache Avro, Apache Storm, Twitter Api, MongoDB, NodeJS, Angular, GraphQL
Stars: ✭ 177 (+420.59%)
Mutual labels:  hadoop, hbase
Bigdata Notes
大数据入门指南 ⭐
Stars: ✭ 10,991 (+32226.47%)
Mutual labels:  hadoop, hbase
dpkb
大数据相关内容汇总,包括分布式存储引擎、分布式计算引擎、数仓建设等。关键词:Hadoop、HBase、ES、Kudu、Hive、Presto、Spark、Flink、Kylin、ClickHouse
Stars: ✭ 123 (+261.76%)
Mutual labels:  hadoop, hbase
Wifi
基于wifi抓取信息的大数据查询分析系统
Stars: ✭ 93 (+173.53%)
Mutual labels:  hadoop, hbase
Repository
个人学习知识库涉及到数据仓库建模、实时计算、大数据、Java、算法等。
Stars: ✭ 92 (+170.59%)
Mutual labels:  hadoop, hbase
BigInsights-on-Apache-Hadoop
Example projects for 'BigInsights for Apache Hadoop' on IBM Bluemix
Stars: ✭ 21 (-38.24%)
Mutual labels:  hadoop, hbase
wasp
WASP is a framework to build complex real time big data applications. It relies on a kind of Kappa/Lambda architecture mainly leveraging Kafka and Spark. If you need to ingest huge amount of heterogeneous data and analyze them through complex pipelines, this is the framework for you.
Stars: ✭ 19 (-44.12%)
Mutual labels:  hadoop, hbase

CMUX

CMUX is a set of commands for managing CDH clusters using Cloudera Manager REST API.

Table of contents

Limitations and Restrictions

CMUX is only tested on:

  • MAC OS X 10.14.x(Mojave) or later
  • CentOS 6.6, 7.1, 7.2, 7.3
  • Bash 4.0 or later
  • Z Shell 5.7.0 or later

Some commands require SSH connection to the managed servers.

Prerequisites

How to Install

Step 1. Run the installation script

Clone this repository and run install script and follow the instructions.

git clone https://github.com/kakao/cmux.git
sh cmux/install/install.sh

Step 2. Write Cloudera Manager Server list on cm.yaml

Write down the list of your Cloudera Manager servers in YAML format and save as config/cm.yaml.

Sample 1. Simple configuration
# Hostname of Cloudera Manager (FQDN)
cm1.kakao.cmux:
  # Description of this Cloudera Manager
  description: "My Cloudera Manager 2"
  # Cloudera Manager user with "Full Administrator" role
  user: admin
  password: admin
  # Cloudera Manager port
  port: 7180
  # Whether or not to use https protocol
  use_ssl: false
Sample 2. Full configuration
# Hostname of Cloudera Manager (FQDN)
cm2.kakao.cmux:
  # Description of this Cloudera Manager
  description: "My Cloudera Manager1"
  # Cloudera Manager user with "Full Administrator" role
  user: admin
  password: admin
  # Cloudera Manager port
  port: 7180
  # Whether or not to use https protocol
  use_ssl: false
  # Add the following section if you have services with Kerberos authentication
  service:
    hbase:
      kerberos:
        krb5.conf: ~/cmux/config/cm1_krb5.conf
        keytab:    ~/cmux/config/cm1-hbase.keytab
        principal: hbase  # principal primary
    impala:
      kerberos:
        krb5.conf: ~/cmux/config/cm1_krb5.conf
        keytab:    ~/cmux/config/cm1-impala.keytab
        principal: impala # princiapl primary

After the installation

Reload your shell configuration file and you should be able to see the list of commands by running cmux.

How to Upgrade

git pull and run install/upgrade.sh.

Command List

cmux

: CMUX command list

  • Usage

    cmux COMMAND [OPTIONS]
    
    Commands:
       example                   exam       Example command
       hbase-region-inspector    hri        Run hbase-region-inspector.
       hbase-table-stat          hts        Run hbase-table-stat.
    ...
       web-cm                 webcm    Open the Cloudera Manager Web Console as the default browser.
    ...
    
    See 'cmux COMMAND -h' or 'cmux COMMAND --help' to read about a specific subcommand.
    

hbase-region-inspector, hri

: Run hbase-region-inspector.

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        hbase-region-inspector, hri
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -i, --interval N                 Run with interval(default: 10 sec)
        -u, --user-mode                  User mode
        -p, --port N                     Port number
        -h, --help                       Show this message
    

hbase-table-stat, hts

: Run hbase-table-stat.

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        hbase-table-stat, hts
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -i, --interval N                 Run with interval(default: 10 sec)
        -u, --user HADOOP_USER_NAME      Run this command with specified HADOOP_USER_NAME
        -p, --port N                     Port number
        -h, --help                       Show this message
    

list-clusters, lc

: List clusters

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        list-clusters, lc
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -h, --help                       Show this message
        -p, --preview                    (Internal option) Preview mode
    
  • Press ctrl-p to open preview window.

list-hosts, lh

: List hosts.

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        list-hosts, lh
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -h, --help                       Show this message
        -p, --preview                    (Internal option) Preview mode
    
  • Press ctrl-p to open preview window.

manage-cloudera-scm-agent, scmagent

: Run clouder-scm-agent in parallel.

cmux COMMAND SCMAGENT_OPTION [OPTIONS]

Command:
    cloudera-scm-agent, scmagent

Scmagent options:
    clean_restart     clean_start     condrestart
    hard_restart      hard_stop       restart
    start             status          stop

Options:
    -s, --sync                       Run with synccm
    -h, --help                       Show this message
    -i, --interval N                 Run with interval in serially (0 or without this option: parallel)

manage-rackid, rackid

: Shows how the rackID(s) is allocated in CM and updates rackID(s).

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        manage-rackid, rackid
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -h, --help                       Show this message
    

rolling-restart-hosts, rrh

: Rolling restart hosts. See Details for Rolling Restart Hosts

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        rolling-restart-hosts, rrh
    
    Options:
        -s, --sync                       Run with synccm
        -h, --help                       Show this message
    

If you want to rolling restart NAMENODE, at least one Nameservice configured by High Availability.

rolling-restart-roles, rrr

: Rolling restart roles. See Details for Rolling Restart Roles

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        rolling-restart-roles, rrr
    
    Options:
        -s, --sync                       Run with synccm
        -h, --help                       Show this message
    

If you want to rolling restart NAMENODE, at least one Nameservice configured by High Availability.

shell-hbase, sh

: Run hbase shell.

  • Usage

    [HBASE_SHELL_OPTS] cmux COMMAND [OPTIONS]
    
    Command:
        shell-hbase, sh
    
    HBase shell options:
        Extra options passed to the hbase shell.
        e.g. HBASE_SHELL_OPTS=-Xmx2g
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -u, --user HADOOP_USER_NAME      Run this command with specified HADOOP_USER_NAME
        -h, --help                       Show this message
    

shell-impala, si

: Run Impala shell.

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        shell-impala, si
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -h, --help                       Show this message
    

ssh-cm-hosts, ssh

: Login via SSH to hosts registered in these Cloudera Managers.

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        ssh-cm-hosts, ssh
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -h, --help                       Show this message
    
  • Press ctrl-p to open preview window.

ssh-tmux, tssh

: Login via SSH to hosts specified in file or list.

--file option

--list option

  • Usage

    Usage: cmux COMMAND [OPTIONS]
    
    Command:
        ssh_tmux, tssh
    
    Options: select only 1
        -f, --file filename              File name where host list is stored
        -l, --list host[ host ...]]      Space separated host list
        -h, --help                       Show this message
    

sync

: CM API Synchronizer

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        sync,
    
    Options:
        -h, --help                       Show this message
    

tmux-window-splitter, tws

: Split tmux window and execute each command in each pane.

  • Usage

    cmux COMMAND SHELL_COMMAND [OPTIONS]
    
    Command:
        tmux-window-splitter, tws
    
    Shell commands:
        shell_command[ shell_command[ ...]]
        One or more shell commands. Each command is separated by a space and commands
        which contain spaces must be quoted
    
    Options:
        -h, --help                       Show this message
    

web-cm, webcm

: Open the Cloudera Manager Web Console as the default browser.

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        web-cm, webcm
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -h, --help                       Show this message
    

web-service, websvc

: Open the Service Web Console as the default browser. Only supports the default port.

  • Usage

    cmux COMMAND [OPTIONS]
    
    Command:
        web-service, websvc
    
    Options:
        -s, --sync                       Run with synccm
        -q, --query query_string         Run fzf with given query
        -h, --help                       Show this message
    
  • Supported services:

    • NAMENODE
    • MASTER
    • REGIONSERVER
    • RESOURCEMANAGER
    • JOBHISTORY
    • SOLR_SERVER
    • KUDU_MASTER
    • HUE_SERVER
    • OOZIE_SERVER

How to add or extend commands

Write command class file like $CMUX_HOME/ext/example.rb and store into $CMUX_HOME/ext.

See details CMUX Extension.

Command completion

Support interactive command completion for both bash and zsh (implemented by fzf).

License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2017 Kakao Corp. http://www.kakaocorp.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].