Updated on 2023-04-10 GMT+08:00

Commissioning Applications on Linux

Prerequisites

The MRS client has been installed. For details, see:

Procedure

  1. Create a directory as the running directory in the running and commissioning environment, for example, /opt/impala_examples, and create the conf subdirectory in the directory. Upload client.properties in the sample code folder impala-examples-normal to the /opt/impala_examples/conf folder in the sample code folder on the Linux OS, and enter the IP address of Impalad in client.properties.
  2. Run the mvn package command in the cmd window or Intellij to obtain a JAR package, for example, impala-examples-mrs-2.1-jar-with-dependencies.jar obtained from the target directory of the project and copy the package to the /opt/impala_examples directory.
  3. Run the following commands in the Linux environment to run the sample program in bigdata_env on the source client:

    chmod +x /opt/impala_examples -R 
    cd /opt/impala_examples 
    java -cp impala-examples-mrs-2.1-jar-with-dependencies.jar com.huawei.bigdata.impala.example.ExampleMain

  4. In the CLI, view the Impala SQL query results in the example code.

    If the following information is displayed, the sample project execution is successful on Linux.
    Create table success!
    _c0
    0
    Delete table success!

    If the following error information is displayed, configure the log4j2 information according to the error information.