Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using Impala/ Impala FAQ/ How Do I Install the Impala-shell Client on a Node Outside the MRS Cluster?
Updated on 2025-07-16 GMT+08:00

How Do I Install the Impala-shell Client on a Node Outside the MRS Cluster?

Question

The MRS Impala client installed on a node outside the MRS cluster cannot be accessed due to Python version issues. How do I install the client?

Answer

Use Pip to install the impala-shell client after configuring the image source.

  1. Run the following command to check whether the Python version is 2 or 3:

    pip --version

  2. If the node is running EulerOS, HCE, or CentOS, run the following command to install the impala-shell client:
    • For Python 2, run the following command:

      yum install -y binutils binutils-devel gcc gcc-c++ python-devel cyrus-sasl-devel krb5-devel

      pip install impala-shell

    • For Python 3, run the following command:

      yum install -y binutils binutils-devel gcc gcc-c++ python3-devel cyrus-sasl-devel krb5-devel

      pip install impala-shell

  3. If the node is running an Ubuntu OS, run the following command to install the impala-shell client:
    • For Python 2, run the following command:

      apt-get update

      apt install -y binutils binutils-dev gcc g++ python2-dev cyrus-dev libkrb5-dev

      pip install impala-shell

    • For Python 3, run the following command:

      apt-get update

      apt install -y binutils binutils-dev gcc g++ python3-dev cyrus-dev libkrb5-dev

      pip install impala-shell

  1. If the node is running a SUSE OS, run the following command to install the impala-shell client:

    Only SUSE 13.2 and later versions support impala-shell. Earlier versions do not support cyrus-sasl-devel and krb5-devel.

    • For Python 2, run the following command:

      zypper install -y binutils binutils-devel gcc gcc-c++ python-devel cyrus-sasl-devel krb5-devel

      After krb5-devel is installed, krb5-config will not be in the PATH directory. You need to create a symbolic link.

      ln -s /usr/lib/mit/bin/krb5-config /usr/bin/krb5-config

      pip install impala-shell

    • For Python 3, run the following command:

      zypper install -y binutils binutils-devel gcc gcc-c++ python3-devel cyrus-sasl-devel krb5-devel

      After krb5-devel is installed, krb5-config will not be in the PATH directory. You need to create a symbolic link.

      ln -s /usr/lib/mit/bin/krb5-config /usr/bin/krb5-config

      pip install impala-shell

To log in to the system using the impala-shell client for a security client, you need to install the MRS client in the cluster and run the kinit <user> command.