[root@localhost bin]# ./spark-sql
Error: Failed to load class org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.
Failed to load main class org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.
You need to build Spark with -Phive and -Phive-thriftserver.
24/02/22 00:23:20 INFO ShutdownHookManager: Shutdown hook called
24/02/22 00:23:20 INFO ShutdownHookManager: Deleting directory /tmp/spark-08e66fc6-ff7d-4da1-b088-111e388939ef