Help Center/ MapReduce Service/ Developer Guide (Normal_3.x)/ Impala Development Guide (Security Mode)/ Commissioning an Impala Application/ Commissioning an Impala JDBC Application on Linux
Updated on 2026-04-10 GMT+08:00
Commissioning an Impala JDBC Application on Linux
- 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.
- Run the mvn package command to obtain the JAR package (for example, impala-examples-mrs-2.1-jar-with-dependencies.jar) from the target directory of the sample project and copy the package to the /opt/impala_examples directory.
- For a cluster in security mode (Kerberos authentication enabled), copy the user.keytab and krb5.conf files obtained in Preparing a Developer Account to the /opt/impala_examples/conf directory.
- In Linux, run the following commands 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
- Use the command-line interface (CLI) to view the Impala SQL query results generated by the sample code. If the following output is displayed, the sample program has executed successfully in the Linux environment.
Create table success! _c0 0 Delete table success!
Parent topic: Commissioning an Impala Application
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot