matianhe3 commented on issue #56539:
URL: https://github.com/apache/spark/issues/56539#issuecomment-4788076118
In terminal :
```
spark-submit \
--master spark://spark-219:7077 \
--deploy-mode cluster \
--class com.pulse.spark.SqlRunner \
--name Test_Insert_ODS \
--driver-cores 1 \
--driver-memory 512m \
--executor-cores 1 \
--executor-memory 1g \
--total-executor-cores 1 \
--conf spark.standalone.submit.waitAppCompletion=true \
s3a://jars/spark-runner_2.13-1.0.0.jar \
--sql "INSERT INTO lk.ods.test (col) VALUES ('test')"
exit_code=$?
if [ $exit_code -eq 0 ]; then
echo "success : $exit_code"
else
echo "failed : $exit_code"
fi
WARNING: Using incubator modules: jdk.incubator.vector
26/06/24 18:02:59 WARN NativeCodeLoader: Unable to load native-hadoop
library for your platform... using builtin-java classes where applicable
26/06/24 18:02:59 INFO SecurityManager: Changing view acls to: admin
26/06/24 18:02:59 INFO SecurityManager: Changing modify acls to: admin
26/06/24 18:02:59 INFO SecurityManager: Changing view acls groups to: admin
26/06/24 18:02:59 INFO SecurityManager: Changing modify acls groups to: admin
26/06/24 18:02:59 INFO SecurityManager: SecurityManager: authentication
disabled; ui acls disabled; users with view permissions: admin groups with view
permissions: EMPTY; users with modify permissions: admin; groups with modify
permissions: EMPTY; RPC SSL disabled
26/06/24 18:02:59 INFO Utils: Successfully started service 'driverClient' on
port 53018.
26/06/24 18:02:59 INFO TransportClientFactory: Successfully created
connection to spark-219/192.168.16.219:7077 after 8 ms (0 ms spent in
bootstraps)
26/06/24 18:02:59 INFO ClientEndpoint: ... waiting before polling master for
driver state
26/06/24 18:02:59 INFO ClientEndpoint: Driver successfully submitted as
driver-20260624180300-0054
26/06/24 18:03:04 INFO ClientEndpoint: State of driver-20260624180300-0054
is RUNNING
26/06/24 18:03:04 INFO ClientEndpoint: Driver running on
192.168.16.219:39181 (worker-20260615171840-192.168.16.219-39181)
26/06/24 18:03:14 INFO ClientEndpoint: State of driver
driver-20260624180300-0054 is FAILED, exiting spark-submit JVM.
success : 0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]