You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/04/27 02:14:40 UTC
[GitHub] [incubator-seatunnel] quanzhian commented on issue #1743: [Bug] [seatunnel-core-spark] spark on yarn cluster mode can not get --config/-c file
quanzhian commented on issue #1743:
URL: https://github.com/apache/incubator-seatunnel/issues/1743#issuecomment-1110455358
Just add check to the command to solve the problem
@whb-bigdata
Running Command
`bin/start-seatunnel-spark.sh --master yarn --deploy-mode cluster --check -c config/application.conf`
Here are the details of my test
`[xxxxxx@bigdata-app03 apache-seatunnel-incubating-2.1.1-SNAPSHOT]# ./bin/start-seatunnel-spark.sh --master yarn --deploy-mode cluster --check --config /mnt/services/seatunnel/spark_batch.conf
22/04/27 09:49:00 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
22/04/27 09:49:01 WARN DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded.
22/04/27 09:49:01 INFO EsServiceCredentialProvider: Loaded EsServiceCredentialProvider
22/04/27 09:49:01 INFO Client: Requesting a new application from cluster with 5 NodeManagers
22/04/27 09:49:01 INFO Configuration: found resource resource-types.xml at file:/etc/hadoop/3.1.4.0-315/0/resource-types.xml
22/04/27 09:49:01 INFO Client: Verifying our application has not requested more than the maximum memory capability of the cluster (6144 MB per container)
22/04/27 09:49:01 INFO Client: Will allocate AM container, with 1408 MB memory including 384 MB overhead
22/04/27 09:49:01 INFO Client: Setting up container launch context for our AM
22/04/27 09:49:01 INFO Client: Setting up the launch environment for our AM container
22/04/27 09:49:01 INFO Client: Preparing resources for our AM container
22/04/27 09:49:02 INFO EsServiceCredentialProvider: Hadoop Security Enabled = [false]
22/04/27 09:49:02 INFO EsServiceCredentialProvider: ES Auth Method = [SIMPLE]
22/04/27 09:49:02 INFO EsServiceCredentialProvider: Are creds required = [false]
22/04/27 09:49:02 INFO Client: Source and destination file systems are the same. Not copying hdfs:/hdp/apps/3.1.4.0-315/spark2/spark2-hdp-yarn-archive.tar.gz
22/04/27 09:49:02 INFO Client: Uploading resource file:/mnt/services/seatunnel/apache-seatunnel-incubating-2.1.1-SNAPSHOT/lib/seatunnel-core-spark.jar -> hdfs://nameservice1/user/xxx_user/.sparkStaging/application_1643094720025_42346/seatunnel-core-spark.jar
22/04/27 09:49:03 INFO Client: Uploading resource file:/mnt/services/seatunnel/apache-seatunnel-incubating-2.1.1-SNAPSHOT/plugins.tar.gz -> hdfs://nameservice1/user/xxx_user/.sparkStaging/application_1643094720025_42346/plugins.tar.gz
22/04/27 09:49:03 INFO Client: Uploading resource file:/mnt/services/seatunnel/spark_batch.conf -> hdfs://nameservice1/user/xxx_user/.sparkStaging/application_1643094720025_42346/spark_batch.conf
22/04/27 09:49:03 INFO Client: Uploading resource file:/tmp/spark-9bbe4cf2-c001-4c0c-a918-7a552a6e5b5b/__spark_conf__1828107881235032523.zip -> hdfs://nameservice1/user/xxx_user/.sparkStaging/application_1643094720025_42346/__spark_conf__.zip
22/04/27 09:49:03 INFO SecurityManager: Changing view acls to: xxxxxx,xxx_user
22/04/27 09:49:03 INFO SecurityManager: Changing modify acls to: xxxxxx,xxx_user
22/04/27 09:49:03 INFO SecurityManager: Changing view acls groups to:
22/04/27 09:49:03 INFO SecurityManager: Changing modify acls groups to:
22/04/27 09:49:03 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(xxxxxx, xxx_user); groups with view permissions: Set(); users with modify permissions: Set(xxxxxx, xxx_user); groups with modify permissions: Set()
22/04/27 09:49:03 INFO Client: Submitting application application_1643094720025_42346 to ResourceManager
22/04/27 09:49:03 INFO YarnClientImpl: Submitted application application_1643094720025_42346
22/04/27 09:49:04 INFO Client: Application report for application_1643094720025_42346 (state: ACCEPTED)
22/04/27 09:49:04 INFO Client:
client token: N/A
diagnostics: AM container is launched, waiting for AM container to Register with RM
ApplicationMaster host: N/A
ApplicationMaster RPC port: -1
queue: default
start time: 1651024143796
final status: UNDEFINED
tracking URL: http://bigdata-master01:8088/proxy/application_1643094720025_42346/
user: xxx_user
22/04/27 09:49:05 INFO Client: Application report for application_1643094720025_42346 (state: ACCEPTED)
22/04/27 09:49:06 INFO Client: Application report for application_1643094720025_42346 (state: ACCEPTED)
22/04/27 09:49:07 INFO Client: Application report for application_1643094720025_42346 (state: RUNNING)
22/04/27 09:49:07 INFO Client:
client token: N/A
diagnostics: N/A
ApplicationMaster host: 172.18.247.18
ApplicationMaster RPC port: 0
queue: default
start time: 1651024143796
final status: UNDEFINED
tracking URL: http://bigdata-master01:8088/proxy/application_1643094720025_42346/
user: xxx_user
22/04/27 09:49:08 INFO Client: Application report for application_1643094720025_42346 (state: RUNNING)
22/04/27 09:49:09 INFO Client: Application report for application_1643094720025_42346 (state: RUNNING)
22/04/27 09:49:10 INFO Client: Application report for application_1643094720025_42346 (state: RUNNING)
22/04/27 09:49:11 INFO Client: Application report for application_1643094720025_42346 (state: FINISHED)
22/04/27 09:49:11 INFO Client:
client token: N/A
diagnostics: N/A
ApplicationMaster host: 172.18.247.18
ApplicationMaster RPC port: 0
queue: default
start time: 1651024143796
final status: SUCCEEDED
tracking URL: http://bigdata-master01:8088/proxy/application_1643094720025_42346/
user: xxx_user
22/04/27 09:49:11 INFO ShutdownHookManager: Shutdown hook called
22/04/27 09:49:11 INFO ShutdownHookManager: Deleting directory /tmp/spark-11894826-40fd-484e-aac6-ec360c1f02c2
22/04/27 09:49:11 INFO ShutdownHookManager: Deleting directory /tmp/spark-9bbe4cf2-c001-4c0c-a918-7a552a6e5b5b
`
Code bug fixes
org.apache.seatunnel.command.spark.SparkTaskExecuteCommand
add Code
`
if (DeployMode.CLUSTER.equals(sparkCommandArgs.getDeployMode())) {
confFile = Paths.get(sparkCommandArgs.getConfigFile()).getFileName().toString();
}
`
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org