Help Center/
MapReduce Service/
Developer Guide (Normal_Earlier Than 3.x)/
Impala Application Development/
Application Commissioning/
Commissioning Applications on Linux/
Running the JDBC Client and Viewing Results
Updated on 2022-09-14 GMT+08:00
Running the JDBC Client and Viewing Results
- Create a directory as the running directory in the running and commissioning environment, for example, /opt/impala_examples (Linux), and create the conf subdirectory in the directory.
- Run the mvn package command 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.
- For a security cluster with Kerberos authentication enabled, copy the user.keytab and krb5.conf files obtained in 4 to the /opt/impala_examples/conf directory. Skip this step for a common cluster.
- In Linux, run the following command to run the sample program:
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
- 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!
Parent topic: Commissioning Applications on Linux
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.