我正在尝试在 AWS EMR 中连接 Astra Cassandra。但是当我通过 S3 传递文件时,执行程序无法获取捆绑文件。
这是我通过的火花提交命令。
--master yarn
--class com.proj.prog
--packages com.datastax.spark:spark-cassandra-connector_2.12:3.1.0,org.apache.hadoop:hadoop-aws:3.1.2
--conf spark.files=s3://.../connect/secure-connect-proj.zip
--conf spark.cassandra.connection.config.cloud.path=secure-connect-proj.zip
模式是集群,它在客户端模式下工作,但不在集群中。
我也试过但没有奏效。
--conf spark.cassandra.connection.config.cloud.path=s3://.../connect/secure-connect-proj.zip
这在这两种情况下都是错误的。
diagnostics: User class threw exception: java.io.IOException: \
Failed to open native connection to Cassandra \
at Cloud File Based Config at secure-connect-proj.zip :: \
The provided path secure-connect-proj.zip is not a valid URL \
nor an existing locally path. Provide an URL accessible to all executors \
or a path existing on all executors (you may use `spark.files` \
to distribute a file to each executor).
Job aborted due to stage failure: Task 0 in stage 1.0 failed 4 times, \
most recent failure: Lost task 0.3 in stage 1.0 (TID 7) \
(ip-172-31-17-85.ap-south-1.compute.internal executor 1): \
java.io.IOException: Failed to open native connection to Cassandra \
at Cloud File Based Config at s3://.../connect/secure-connect-proj.zip :: \
The provided path s3://.../connect/secure-connect-proj.zip is not a valid URL \
nor an existing locally path. Provide an URL accessible to all executors \
or a path existing on all executors (you may use `spark.files` \
to distribute a file to each executor).
请帮忙。我知道我遗漏了一些东西,但我找不到可行的解决方案。