Why Does the --hivevar Option I Specified in the Command for Starting spark-beeline Fail to Take Effect?
Question
The --hivevar option specified in the command for starting spark-beeline fails to take effect.
If --hivevar <VAR_NAME>=<var_value> is used in the command for starting spark-beeline in an MRS cluster to customize a variable, no error is reported when spark-beeline is started. However, when the variable <VAR_NAME> is used in SQL statements, an error message is displayed because <VAR_NAME> cannot be parsed.
The following example describes the scenario:
- Run the following command to start the spark-beeline:
- Run the a SQL statement, for example, DROP TABLE ${VAR_NAME} in spark-beeline. The VAR_NAME exception is thrown.
Answer
The multi-session management function is added to the MRS cluster. Hive feature --hivevar <VAR_NAME>=<var_value> is no longer supported in Spark, and the --hivevar option in the spark-beeline startup command is invalid.
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot